EventHandler

Trait EventHandler 

Source
pub trait EventHandler: Sync {
    // Required method
    fn on_recognition(&self, phrase: Phrase);
}
Expand description

The handler EventfulContext will call.

Required Methods§

Source

fn on_recognition(&self, phrase: Phrase)

Called when the engine has successfully recognized a phrase.

Implementors§