pub trait Command: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn description(&self) -> &'static str;
fn execute(&self, input: &Input) -> Result<(), ConsoleError>;
}Expand description
A discoverable console command (foo:bar).
Required Methods§
Sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
One-line help shown by list.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".