Trait MsgHandler
Source pub trait MsgHandler: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn description(&self) -> &str;
fn supported_channels(&self) -> &HashSet<String>;
fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
args: &'life1 [String],
msg_ev: &'life2 SlackMsgEv,
state: &'life3 BotState,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
}