Skip to main content

OsNotifyChannel

Trait OsNotifyChannel 

Source
pub trait OsNotifyChannel {
    // Required method
    fn send(&self, title: &str, body: &str) -> Result<(), AppError>;
}
Expand description

Abstraction over any channel that can send an OS-style notification.

AppHandleChannel wraps tauri::AppHandle for production. MockOsChannel is provided for tests.

Required Methods§

Source

fn send(&self, title: &str, body: &str) -> Result<(), AppError>

Implementors§