NotificationChannel

Trait NotificationChannel 

Source
pub trait NotificationChannel: Send + Sync {
    // Required methods
    fn send_notification(&self, alert: &ActiveAlert) -> DeviceResult<()>;
    fn channel_type(&self) -> QMLAlertChannel;
}
Expand description

Notification channel trait

Required Methods§

Source

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

Send notification

Source

fn channel_type(&self) -> QMLAlertChannel

Channel type

Implementors§