AlertHandler

Trait AlertHandler 

Source
pub trait AlertHandler: Send + Sync {
    // Required method
    fn handle<'life0, 'life1, 'async_trait>(
        &'life0 self,
        alert: &'life1 Alert,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Alert handler trait

Required Methods§

Source

fn handle<'life0, 'life1, 'async_trait>( &'life0 self, alert: &'life1 Alert, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Handle an alert

Implementors§