Skip to main content

TaskerEventHandler

Trait TaskerEventHandler 

Source
pub trait TaskerEventHandler: Send + Sync {
    // Provided methods
    fn on_tasker_task(
        &self,
        _noti_type: NotificationType,
        _detail: TaskerTaskDetail,
    ) { ... }
    fn on_unknown(&self, _msg: &str, _details: &Value) { ... }
}
Expand description

Trait for handling tasker events.

Provided Methods§

Source

fn on_tasker_task( &self, _noti_type: NotificationType, _detail: TaskerTaskDetail, )

Called when a tasker task event occurs.

Source

fn on_unknown(&self, _msg: &str, _details: &Value)

Called when an unknown notification is received.

Implementors§