pub trait ControllerEventHandler: Send + Sync {
// Provided methods
fn on_controller_action(
&self,
_noti_type: NotificationType,
_detail: ControllerActionDetail,
) { ... }
fn on_unknown(&self, _msg: &str, _details: &Value) { ... }
}Expand description
Trait for handling controller events.
Provided Methods§
Sourcefn on_controller_action(
&self,
_noti_type: NotificationType,
_detail: ControllerActionDetail,
)
fn on_controller_action( &self, _noti_type: NotificationType, _detail: ControllerActionDetail, )
Called when a controller action 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.