Trait BotCmdHandler

Source
pub trait BotCmdHandler:
    Send
    + Sync
    + UnwindSafe
    + RefUnwindSafe {
    // Required method
    fn run(&self, _: &State, _: &MsgMetadata<'_>, _: &Yaml) -> BotCmdResult;
}

Required Methods§

Source

fn run(&self, _: &State, _: &MsgMetadata<'_>, _: &Yaml) -> BotCmdResult

Implementors§

Source§

impl<F, R> BotCmdHandler for F
where F: Fn(&State, &MsgMetadata<'_>, &Yaml) -> R + Send + Sync + UnwindSafe + RefUnwindSafe, R: Into<BotCmdResult>,