[−][src]Trait carapax::CommandHandler
Actual command handler
Required methods
fn handle(
&mut self,
context: &mut C,
message: &Message,
args: Vec<String>
) -> HandlerFuture
&mut self,
context: &mut C,
message: &Message,
args: Vec<String>
) -> HandlerFuture
Handles a command
Implementors
impl<C, F, R> CommandHandler<C> for F where
F: FnMut(&mut C, &Message, Vec<String>) -> R,
R: Into<HandlerFuture>,
[src]
F: FnMut(&mut C, &Message, Vec<String>) -> R,
R: Into<HandlerFuture>,