Trait TriggerHandler

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

Required Methods§

Source

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

Implementors§

Source§

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