Trait CommandRunner

Source
pub trait CommandRunner {
    type Set: CommandSet;

    // Required method
    fn run(
        &self,
        cmd: Self::Set,
        args: Vec<String>,
    ) -> impl Future<Output = Result<(), impl Error>>;
}
Expand description

CommandRunner is used to perform a specific task based on the

Required Associated Types§

Required Methods§

Source

fn run( &self, cmd: Self::Set, args: Vec<String>, ) -> impl Future<Output = Result<(), impl Error>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§