pub trait Notifier {
// Required method
fn notify(&self, title: &str, body: &str) -> Result<(), Error>;
}Expand description
Abstraction over desktop notification, allowing test mocks.
The production implementation is AutoNotifier, which shells out to
notify-send (Linux), osascript / terminal-notifier (macOS), or
PowerShell (Windows). See crate::notify for details.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".