Skip to main content

AlertHandler

Trait AlertHandler 

Source
pub trait AlertHandler: Send {
    // Required method
    fn on_alert(&mut self, alert: &Alert);
}
Expand description

Receives alerts dispatched by the bus.

Required Methods§

Source

fn on_alert(&mut self, alert: &Alert)

Called synchronously when an alert is dispatched.

Implementors§