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§
Sourcefn notify_task_complete(
&self,
task_name: &str,
success: bool,
message: Option<&str>,
)
fn notify_task_complete( &self, task_name: &str, success: bool, message: Option<&str>, )
Notify when a task completes
Sourcefn notify_all_tasks_complete(
&self,
total: usize,
succeeded: usize,
failed: usize,
)
fn notify_all_tasks_complete( &self, total: usize, succeeded: usize, failed: usize, )
Notify when all tasks are complete