Skip to main content

Handler

Trait Handler 

Source
pub trait Handler: Send + Sync {
    // Required methods
    fn commands(&self) -> &[&str];
    fn classify(&self, ctx: &HandlerContext<'_>) -> Classification;
}
Expand description

Trait for command handlers.

Required Methods§

Source

fn commands(&self) -> &[&str]

Source

fn classify(&self, ctx: &HandlerContext<'_>) -> Classification

Implementors§