pub trait SlashCommandHandlerTrait: Send + Sync {
// Required method
fn handle_slash_command(
&self,
client: &SlackClient,
body: SlashCommandBody,
) -> impl Future<Output = Result<SlashCommandResponse, ResponseError>> + Send;
}Expand description
The trait representing the interface that acts as a slash command.
Required Methods§
Sourcefn handle_slash_command(
&self,
client: &SlackClient,
body: SlashCommandBody,
) -> impl Future<Output = Result<SlashCommandResponse, ResponseError>> + Send
fn handle_slash_command( &self, client: &SlackClient, body: SlashCommandBody, ) -> impl Future<Output = Result<SlashCommandResponse, ResponseError>> + Send
Handles SlashCommandBody.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.