Skip to main content

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§