Skip to main content

Command

Trait Command 

Source
pub trait Command {
    // Required methods
    fn name(&self) -> &str;
    fn description(&self) -> &str;
    fn execute(
        &self,
        session: &mut Session,
        args: &[&str],
    ) -> Result<CommandOutput>;
}

Required Methods§

Source

fn name(&self) -> &str

Source

fn description(&self) -> &str

Source

fn execute(&self, session: &mut Session, args: &[&str]) -> Result<CommandOutput>

Implementors§