pub struct Shutdown { /* private fields */ }
Expand description
Listens for the server shutdown signal.
Shutdown is signalled using a broadcast::Receiver
. Only a single value is
ever sent. Once a value has been sent via the broadcast channel, the server
should shutdown.
The Shutdown
struct listens for the signal and tracks that the signal has
been received. Callers may query for whether the shutdown signal has been
received or not.
Trait Implementations§
Auto Trait Implementations§
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