pub struct UnixShutdownSignalWatch;
Expand description
A Unix shutdown watcher that awaits for Unix signals.
SIGQUIT
: graceful upgradeSIGTERM
: graceful terminateSIGINT
: fast shutdown
Trait Implementations§
Source§impl ShutdownSignalWatch for UnixShutdownSignalWatch
impl ShutdownSignalWatch for UnixShutdownSignalWatch
Source§fn recv<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ShutdownSignal> + Send + 'async_trait>>where
'life0: 'async_trait,
UnixShutdownSignalWatch: 'async_trait,
fn recv<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ShutdownSignal> + Send + 'async_trait>>where
'life0: 'async_trait,
UnixShutdownSignalWatch: 'async_trait,
Returns the desired shutdown type once one has been requested.
Auto Trait Implementations§
impl Freeze for UnixShutdownSignalWatch
impl RefUnwindSafe for UnixShutdownSignalWatch
impl Send for UnixShutdownSignalWatch
impl Sync for UnixShutdownSignalWatch
impl Unpin for UnixShutdownSignalWatch
impl UnwindSafe for UnixShutdownSignalWatch
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