pub trait EventHandler: Sync {
// Required method
fn on_recognition(&self, phrase: Phrase);
}Expand description
The handler EventfulContext will call.
Required Methods§
Sourcefn on_recognition(&self, phrase: Phrase)
fn on_recognition(&self, phrase: Phrase)
Called when the engine has successfully recognized a phrase.