Skip to main content

ContextEventHandler

Trait ContextEventHandler 

Source
pub trait ContextEventHandler: Send + Sync {
    // Provided methods
    fn on_node_next_list(
        &self,
        _noti_type: NotificationType,
        _detail: NodeNextListDetail,
    ) { ... }
    fn on_node_recognition(
        &self,
        _noti_type: NotificationType,
        _detail: NodeRecognitionDetail,
    ) { ... }
    fn on_node_action(
        &self,
        _noti_type: NotificationType,
        _detail: NodeActionDetail,
    ) { ... }
    fn on_node_pipeline_node(
        &self,
        _noti_type: NotificationType,
        _detail: NodePipelineNodeDetail,
    ) { ... }
    fn on_node_recognition_node(
        &self,
        _noti_type: NotificationType,
        _detail: NodePipelineNodeDetail,
    ) { ... }
    fn on_node_action_node(
        &self,
        _noti_type: NotificationType,
        _detail: NodePipelineNodeDetail,
    ) { ... }
    fn on_unknown(&self, _msg: &str, _details: &Value) { ... }
}
Expand description

Trait for handling context/node events.

Provided Methods§

Source

fn on_node_next_list( &self, _noti_type: NotificationType, _detail: NodeNextListDetail, )

Called when a node next list event occurs.

Source

fn on_node_recognition( &self, _noti_type: NotificationType, _detail: NodeRecognitionDetail, )

Called when a node recognition event occurs.

Source

fn on_node_action( &self, _noti_type: NotificationType, _detail: NodeActionDetail, )

Called when a node action event occurs.

Source

fn on_node_pipeline_node( &self, _noti_type: NotificationType, _detail: NodePipelineNodeDetail, )

Called when a node pipeline node event occurs.

Source

fn on_node_recognition_node( &self, _noti_type: NotificationType, _detail: NodePipelineNodeDetail, )

Called when a node recognition node (trace) event occurs.

Source

fn on_node_action_node( &self, _noti_type: NotificationType, _detail: NodePipelineNodeDetail, )

Called when a node action node (trace) event occurs.

Source

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

Called when an unknown notification is received.

Implementors§