pub trait CommandHandler: Send + Sync {
// Required method
fn execute(&self, args: &str) -> Result<String, AppError>;
}Expand description
Handler for a single slash command.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".