NotificationHandler

Trait NotificationHandler 

Source
pub trait NotificationHandler {
    // Required methods
    fn send_notification(
        &self,
        alert: &ActiveAlert,
        message: &str,
    ) -> DeviceResult<()>;
    fn get_handler_info(&self) -> NotificationHandlerInfo;
}
Expand description

Notification handler trait

Required Methods§

Source

fn send_notification( &self, alert: &ActiveAlert, message: &str, ) -> DeviceResult<()>

Source

fn get_handler_info(&self) -> NotificationHandlerInfo

Implementors§