Trait CommandManager

Source
pub trait CommandManager: Send + Sync {
    // Required methods
    fn get_command(&self, name: &str) -> Result<Command, NoSuchCommand>;
    fn get_commands(&self) -> Vec<Command>;
}

Required Methods§

Source

fn get_command(&self, name: &str) -> Result<Command, NoSuchCommand>

Returns the command with the given name.

Source

fn get_commands(&self) -> Vec<Command>

Returns all commands.

Trait Implementations§

Source§

impl Injectable for dyn CommandManager + Sync + Send

Implementors§