pub trait NotificationChannel: Send + Sync {
// Required methods
fn send_notification(&self, alert: &Alert) -> Result<()>;
fn get_channel_type(&self) -> String;
}Expand description
Notification channel trait
Required Methods§
fn send_notification(&self, alert: &Alert) -> Result<()>
fn get_channel_type(&self) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".