pub struct ShutdownHandle { /* private fields */ }Expand description
Handle for triggering shutdown
Implementations§
Source§impl ShutdownHandle
impl ShutdownHandle
Sourcepub fn is_triggered(&self) -> bool
pub fn is_triggered(&self) -> bool
Check if shutdown has been triggered
Sourcepub fn signal(&self) -> ShutdownSignal
pub fn signal(&self) -> ShutdownSignal
Get a signal that can be used to detect shutdown
Trait Implementations§
Source§impl Clone for ShutdownHandle
impl Clone for ShutdownHandle
Source§fn clone(&self) -> ShutdownHandle
fn clone(&self) -> ShutdownHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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