pub struct ShutdownHandle { /* private fields */ }Expand description
A handle held by an active task, which can be used to receive shutdown notifications and to delay program termination until the task has completed.
Trait Implementations§
Source§impl Debug for ShutdownHandle
impl Debug for ShutdownHandle
Source§impl Default for ShutdownHandle
impl Default for ShutdownHandle
Source§impl From<&ShutdownHandle> for ShutdownSignal
impl From<&ShutdownHandle> for ShutdownSignal
Source§fn from(handle: &ShutdownHandle) -> Self
fn from(handle: &ShutdownHandle) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ShutdownHandle
impl !RefUnwindSafe for ShutdownHandle
impl Send for ShutdownHandle
impl Sync for ShutdownHandle
impl Unpin for ShutdownHandle
impl !UnwindSafe for ShutdownHandle
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