pub trait CommandHandler: Send + Sync {
type Args: Send + Sync;
// Required methods
fn handle<'life0, 'async_trait>(
&'life0 self,
args: Self::Args,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn name(&self) -> &'static str;
// Provided methods
fn description(&self) -> &'static str { ... }
fn signature(&self) -> &'static str { ... }
}
Expand description
Trait for command handlers
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
Command description