Skip to main content

classify

Function classify 

Source
pub fn classify(command: &Command) -> ControlVerdict
Expand description

Classifies one Command.

Pure and exhaustive: every one of the Commands is answered, so a new Command cannot be added without deciding whether it interrupts anything. That question is the reason this module is not part of the listener - the listener could not answer it, and would not know it had been asked.