Trait ShutdownSignalWatch

Source
pub trait ShutdownSignalWatch {
    // Required method
    fn recv<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = ShutdownSignal> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Watcher of a shutdown signal, e.g., UnixShutdownSignalWatch for Unix-like platforms.

Required Methods§

Source

fn recv<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ShutdownSignal> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the desired shutdown type once one has been requested.

Implementors§