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§
Required Associated Types§
Required Methods§
fn subcommand<'a, 'b>() -> App<'a, 'b>
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.