pub trait NotificationChannel: Send + Sync {
// Required methods
fn send_notification<'life0, 'life1, 'async_trait>(
&'life0 self,
notification: &'life1 AlertNotification,
) -> Pin<Box<dyn Future<Output = RragResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn channel_type(&self) -> NotificationChannelType;
fn name(&self) -> &str;
fn is_healthy<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Notification channel trait