[][src]Trait kahoot::Handler

pub trait Handler: Send + Sync {
#[must_use]    fn on_login<'life0, 'async_trait>(
        &'life0 self,
        _ctx: Context
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn on_username_accepted<'life0, 'async_trait>(
        &'life0 self,
        _ctx: Context,
        _msg: UsernameAcceptedMessage
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn on_get_ready<'life0, 'async_trait>(
        &'life0 self,
        _ctx: Context,
        _msg: GetReadyMessage
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn on_start_question<'life0, 'async_trait>(
        &'life0 self,
        _ctx: Context,
        _msg: StartQuestionMessage
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn on_error<'life0, 'async_trait>(
        &'life0 self,
        _ctx: Context,
        _e: KahootError
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... } }

Provided methods

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

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

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

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

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

Loading content...

Implementors

impl Handler for DefaultHandler[src]

Loading content...