pub struct ShutdownSignal { /* private fields */ }Expand description
Signal for detecting shutdown (cloneable, can be passed to tasks)
Implementations§
Source§impl ShutdownSignal
impl ShutdownSignal
Sourcepub fn is_triggered(&self) -> bool
pub fn is_triggered(&self) -> bool
Check if shutdown has been triggered (non-blocking)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShutdownSignal
impl !RefUnwindSafe for ShutdownSignal
impl Send for ShutdownSignal
impl Sync for ShutdownSignal
impl Unpin for ShutdownSignal
impl !UnwindSafe for ShutdownSignal
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