NotificationHandler

Trait NotificationHandler 

Source
pub trait NotificationHandler: Send + Sync {
    // Required method
    fn send_notification<'life0, 'life1, 'async_trait>(
        &'life0 self,
        notification: &'life1 AlertNotification,
    ) -> Pin<Box<dyn Future<Output = Result<(), NotificationError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn send_notification<'life0, 'life1, 'async_trait>( &'life0 self, notification: &'life1 AlertNotification, ) -> Pin<Box<dyn Future<Output = Result<(), NotificationError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§