Trait NotificationClient

Source
pub trait NotificationClient: Send + Sync {
    // Required methods
    fn notify_task_complete(
        &self,
        task_name: &str,
        success: bool,
        message: Option<&str>,
    );
    fn notify_all_tasks_complete(
        &self,
        total: usize,
        succeeded: usize,
        failed: usize,
    );
}
Expand description

Trait for sending desktop notifications

Required Methods§

Source

fn notify_task_complete( &self, task_name: &str, success: bool, message: Option<&str>, )

Notify when a task completes

Source

fn notify_all_tasks_complete( &self, total: usize, succeeded: usize, failed: usize, )

Notify when all tasks are complete

Implementors§