CommandBase

Trait CommandBase 

Source
pub trait CommandBase {
    type Response;
    type Error;

    const NAME: &'static str;

    // Required methods
    fn subcommand<'a, 'b>() -> App<'a, 'b>;
    fn run(args: &ArgMatches<'_>) -> Result<Self::Response, Self::Error>;
}

Required Associated Constants§

Source

const NAME: &'static str

Required Associated Types§

Required Methods§

Source

fn subcommand<'a, 'b>() -> App<'a, 'b>

Source

fn run(args: &ArgMatches<'_>) -> Result<Self::Response, Self::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§