Trait quartz_commands::CommandModule [−][src]
pub trait CommandModule<C> { fn dispatch(&self, command: &str, context: C) -> Result<(), Error>; fn get_suggestions(&self, command: &str, context: &C) -> Vec<String>; }
Expand description
Defines a command module, or a set of command definitions with an associated parser and suggestion generator.
Required methods
Dispatches the given command for execution.