pub trait CommandManager: Send + Sync {
// Required methods
fn get_command(&self, name: &str) -> Result<Command, NoSuchCommand>;
fn get_commands(&self) -> Vec<Command>;
}
Required Methods§
Sourcefn get_command(&self, name: &str) -> Result<Command, NoSuchCommand>
fn get_command(&self, name: &str) -> Result<Command, NoSuchCommand>
Returns the command with the given name.
Sourcefn get_commands(&self) -> Vec<Command>
fn get_commands(&self) -> Vec<Command>
Returns all commands.