Trait AlertHandler

Source
pub trait AlertHandler: Send + Sync {
    // Required method
    fn handle_alert<'life0, 'async_trait>(
        &'life0 self,
        alert_type: AlertType,
        message: String,
        workflow_id: Option<WorkflowId>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Alert handler trait

Required Methods§

Source

fn handle_alert<'life0, 'async_trait>( &'life0 self, alert_type: AlertType, message: String, workflow_id: Option<WorkflowId>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Handle an alert

Implementors§