[][src]Trait hiven_rs::client::EventHandler

pub trait EventHandler: Send {
    fn on_connect<'c>(
        &self,
        _client: &'c Client<'c, 'c>,
        _event: EventInitState
    ) -> Pin<Box<dyn Future<Output = ()> + 'c>> { ... }
fn on_house_join<'c>(
        &self,
        _client: &'c Client<'c, 'c>,
        _event: House
    ) -> Pin<Box<dyn Future<Output = ()> + 'c>> { ... }
fn on_typing<'c>(
        &self,
        _client: &'c Client<'c, 'c>,
        _event: EventTypingStart
    ) -> Pin<Box<dyn Future<Output = ()> + 'c>> { ... }
fn on_message<'c>(
        &'c self,
        _client: &'c Client<'c, 'c>,
        _event: Message
    ) -> Pin<Box<dyn Future<Output = ()> + 'c>> { ... } }

Provided methods

fn on_connect<'c>(
    &self,
    _client: &'c Client<'c, 'c>,
    _event: EventInitState
) -> Pin<Box<dyn Future<Output = ()> + 'c>>

fn on_house_join<'c>(
    &self,
    _client: &'c Client<'c, 'c>,
    _event: House
) -> Pin<Box<dyn Future<Output = ()> + 'c>>

fn on_typing<'c>(
    &self,
    _client: &'c Client<'c, 'c>,
    _event: EventTypingStart
) -> Pin<Box<dyn Future<Output = ()> + 'c>>

fn on_message<'c>(
    &'c self,
    _client: &'c Client<'c, 'c>,
    _event: Message
) -> Pin<Box<dyn Future<Output = ()> + 'c>>

Loading content...

Implementors

Loading content...