[][src]Trait serenity::prelude::RawEventHandler

pub trait RawEventHandler: Send + Sync {
#[must_use]    fn raw_event<'life0, 'async_trait>(
        &'life0 self,
        _ctx: Context,
        _ev: Event
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... } }

This core trait for handling raw events

Provided methods

#[must_use]fn raw_event<'life0, 'async_trait>(
    &'life0 self,
    _ctx: Context,
    _ev: Event
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Dispatched when any event occurs

Loading content...

Implementors

Loading content...