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§
Sourcefn send_notification(&self, alert: &ActiveAlert) -> DeviceResult<()>
fn send_notification(&self, alert: &ActiveAlert) -> DeviceResult<()>
Send notification
Sourcefn channel_type(&self) -> QMLAlertChannel
fn channel_type(&self) -> QMLAlertChannel
Channel type