pub struct ShutdownSender { /* private fields */ }
Expand description
Contains methods to send a “clean shutdown” signal to asynchronous tasks.
Implementations§
Source§impl ShutdownSender
impl ShutdownSender
Sourcepub async fn shutdown(&mut self)
pub async fn shutdown(&mut self)
Signals all async tasks waiting on the corresponding ShutdownReceiver to stop.
Awaits until they have all shutdown (technically, until all corresponding ShutdownReceivers have been dropped).
Auto Trait Implementations§
impl Freeze for ShutdownSender
impl RefUnwindSafe for ShutdownSender
impl Send for ShutdownSender
impl Sync for ShutdownSender
impl Unpin for ShutdownSender
impl UnwindSafe for ShutdownSender
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