tasker_lib 0.0.3

A simple crate for time based tasks
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use notify_rust::{self, Notification};

pub(crate) fn notify(task_name:&String)->Result<notify_rust::NotificationHandle, notify_rust::error::Error>{
    let res_cat = "executed task, name:".to_string() + &task_name;
    let full_body = res_cat.as_str();
    let noti: Result<notify_rust::NotificationHandle, notify_rust::error::Error> =  Notification::new()
    .summary("Tasker Service")
    .body(full_body)
    .show();
    noti

}