pub trait AlertHandler: Send + Sync {
// Required methods
fn handle_alert(&self, alert: &ResourceAlert) -> Result<(), String>;
fn priority(&self) -> u32;
fn can_handle(&self, alert: &ResourceAlert) -> bool;
}Expand description
Trait for handling resource alerts
Required Methods§
Sourcefn handle_alert(&self, alert: &ResourceAlert) -> Result<(), String>
fn handle_alert(&self, alert: &ResourceAlert) -> Result<(), String>
Handles a resource alert
Sourcefn can_handle(&self, alert: &ResourceAlert) -> bool
fn can_handle(&self, alert: &ResourceAlert) -> bool
Checks if this handler can handle the given alert