NotificationChannel

Trait NotificationChannel 

Source
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

Required Methods§

Source

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,

Source

fn channel_type(&self) -> NotificationChannelType

Source

fn name(&self) -> &str

Source

fn is_healthy<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§