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§
Sourcefn on_tasker_task(
&self,
_noti_type: NotificationType,
_detail: TaskerTaskDetail,
)
fn on_tasker_task( &self, _noti_type: NotificationType, _detail: TaskerTaskDetail, )
Called when a tasker task event occurs.
Sourcefn on_unknown(&self, _msg: &str, _details: &Value)
fn on_unknown(&self, _msg: &str, _details: &Value)
Called when an unknown notification is received.