Trait commodore::Handler [] [src]

pub trait Handler: Sync + Send {
    fn handle(
        &self,
        cmd: &Command,
        caps: &Option<Captures>,
        responder: Box<Responder>
    ) -> Option<Response>; fn as_handler(&self) -> &Handler; }

Command handling interface Implementation for Fn

Required Methods

handles Slack commands. Optional captures resulting from matching are provided along with an interface for deferred responses

provides a mean explicit coersion for disambiguating cases where a fn named handle is already defined in another trait for which another impl exists for the same type

Implementors