1 2 3 4 5 6 7 8 9 10 11 12
use crate::utils::BoxedError; use notify_rust::Notification; use std::result::Result; pub fn notify(msg: &str) -> Result<(), BoxedError> { Notification::new() .summary("Clock") .body(msg) .icon("clock") .show()?; Ok(()) }