pub struct Shutdown { /* private fields */ }Expand description
Shutdown coordinator.
A Shutdown can create many ShutdownToken clones; calling Shutdown::trigger
transitions the shutdown flag to “true” and wakes any threads blocked in
ShutdownToken::wait / ShutdownToken::wait_timeout.
Contract: shutdown is one-way and idempotent.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Shutdown
impl RefUnwindSafe for Shutdown
impl Send for Shutdown
impl Sync for Shutdown
impl Unpin for Shutdown
impl UnwindSafe for Shutdown
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