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§
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