pub trait CliExtension: Send + Sync {
type Command: Send + Sync;
// Required method
fn handle_command(
&self,
command: Self::Command,
) -> impl Future<Output = Result<()>> + Send;
}Expand description
Extension point for domain-specific CLI commands.
Domain applications implement this trait to add custom subcommands beyond the built-in base commands.
Required Associated Types§
Required Methods§
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.