pub struct ShutdownSignals(/* private fields */);Expand description
Wrapper behind futures that upon completion will trigger binary shutdown.
Implementations§
Source§impl ShutdownSignals
impl ShutdownSignals
Sourcepub async fn wait_for_signal(&mut self)
pub async fn wait_for_signal(&mut self)
Wait for any of the registered signals to be ready
Trait Implementations§
Source§impl Default for ShutdownSignals
impl Default for ShutdownSignals
Source§fn default() -> ShutdownSignals
fn default() -> ShutdownSignals
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ShutdownSignals
impl RefUnwindSafe for ShutdownSignals
impl Send for ShutdownSignals
impl Sync for ShutdownSignals
impl Unpin for ShutdownSignals
impl UnwindSafe for ShutdownSignals
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