Skip to main content

ControllerEventHandler

Trait ControllerEventHandler 

Source
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§

Source

fn on_controller_action( &self, _noti_type: NotificationType, _detail: ControllerActionDetail, )

Called when a controller action event occurs.

Source

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

Called when an unknown notification is received.

Implementors§