pub trait EventHandler<S>: Sendwhere
S: SlackWebAPIClient,{
// Provided methods
fn on_close<'life0, 'life1, 'async_trait>(
&'life0 mut self,
socket_mode: &'life1 SocketMode<S>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn on_connect<'life0, 'life1, 'async_trait>(
&'life0 mut self,
socket_mode: &'life1 SocketMode<S>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn on_hello<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
socket_mode: &'life1 SocketMode<S>,
e: HelloEvent,
s: &'life2 mut Stream,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn on_disconnect<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
socket_mode: &'life1 SocketMode<S>,
e: DisconnectEvent,
s: &'life2 mut Stream,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn on_events_api<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
socket_mode: &'life1 SocketMode<S>,
e: EventsAPI,
s: &'life2 mut Stream,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn on_interactive<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
socket_mode: &'life1 SocketMode<S>,
e: InteractiveEvent,
s: &'life2 mut Stream,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn on_slash_commands<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
socket_mode: &'life1 SocketMode<S>,
e: SlashCommandsEvent,
s: &'life2 mut Stream,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
}Expand description
Implement this trait in your code to handle slack events.