telexide_fork/framework/
handlers.rs

1use super::types::CommandResult;
2use crate::{client::Context, model::Message};
3use std::{future::Future, pin::Pin};
4
5pub(crate) type CommandOutcome = Pin<Box<dyn Future<Output = CommandResult> + Send>>;
6pub(crate) type CommandHandlerFunc = fn(Context, Message) -> CommandOutcome;