pub struct ShutdownSubcription { /* private fields */ }
Expand description
ShutdownSubcription can be used by code that is idling. Select on your timeout and ShutdownSubcription::shutting_down to wake up when either the timeout expires or the process is about to shut down.
Implementations§
source§impl ShutdownSubcription
impl ShutdownSubcription
sourcepub async fn shutting_down(&mut self)
pub async fn shutting_down(&mut self)
Await the shutdown of the process
Auto Trait Implementations§
impl Freeze for ShutdownSubcription
impl !RefUnwindSafe for ShutdownSubcription
impl Send for ShutdownSubcription
impl Sync for ShutdownSubcription
impl Unpin for ShutdownSubcription
impl !UnwindSafe for ShutdownSubcription
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more