Trait EventHandler
Source pub trait EventHandler: Send + Sync {
// Provided methods
fn ready<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: Context,
_ready: ReadyEventData<'life1>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn message_create<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: Context,
_msg: Message<'life1>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn interaction_create<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: Context,
_interaction: Interaction<'life1>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}