pub trait AppCommand:
Parser
+ Send
+ 'static {
// Required method
fn run(self, state: AppState) -> impl Future<Output = Result> + Send;
}Expand description
A command whose arguments are a clap Parser: its #[command(name = …)]
is the command’s name, and its doc comment (or about) the line in
my-app help. Register it with App::typed_command.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".