Trait ts3::event::EventHandler[][src]

pub trait EventHandler: Send + Sync {
    #[must_use]
    fn cliententerview<'life0, 'async_trait>(
        &'life0 self,
        _client: Client,
        _event: ClientEnterView
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn clientleftview<'life0, 'async_trait>(
        &'life0 self,
        _client: Client,
        _event: ClientLeftView
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn serveredited<'life0, 'async_trait>(
        &'life0 self,
        _client: Client,
        _event: ServerEdited
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn channeldescriptionchanged<'life0, 'async_trait>(
        &'life0 self,
        _client: Client,
        _event: ChannelDescriptionChanged
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn channelpasswordchanged<'life0, 'async_trait>(
        &'life0 self,
        _client: Client,
        _event: ChannelPasswordChanged
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn channelmoved<'life0, 'async_trait>(
        &'life0 self,
        _client: Client,
        _event: ChannelMoved
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn channeledited<'life0, 'async_trait>(
        &'life0 self,
        _client: Client,
        _event: ChannelEdited
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn channelcreated<'life0, 'async_trait>(
        &'life0 self,
        _client: Client,
        _event: ChannelCreated
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn channeldeleted<'life0, 'async_trait>(
        &'life0 self,
        _client: Client,
        _event: ChannelDeleted
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn clientmoved<'life0, 'async_trait>(
        &'life0 self,
        _client: Client,
        _event: ClientMoved
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn textmessage<'life0, 'async_trait>(
        &'life0 self,
        _client: Client,
        _event: TextMessage
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn tokenused<'life0, 'async_trait>(
        &'life0 self,
        _client: Client,
        _event: TokenUsed
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... } }
Expand description

All events sent by the server will be dispatched to their appropriate trait method. In order to receive events you must subscribe to the events you want to receive using servernotifyregister.

Provided methods

#[must_use]
fn cliententerview<'life0, 'async_trait>(
    &'life0 self,
    _client: Client,
    _event: ClientEnterView
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]
fn clientleftview<'life0, 'async_trait>(
    &'life0 self,
    _client: Client,
    _event: ClientLeftView
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]
fn serveredited<'life0, 'async_trait>(
    &'life0 self,
    _client: Client,
    _event: ServerEdited
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]
fn channeldescriptionchanged<'life0, 'async_trait>(
    &'life0 self,
    _client: Client,
    _event: ChannelDescriptionChanged
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]
fn channelpasswordchanged<'life0, 'async_trait>(
    &'life0 self,
    _client: Client,
    _event: ChannelPasswordChanged
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]
fn channelmoved<'life0, 'async_trait>(
    &'life0 self,
    _client: Client,
    _event: ChannelMoved
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]
fn channeledited<'life0, 'async_trait>(
    &'life0 self,
    _client: Client,
    _event: ChannelEdited
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]
fn channelcreated<'life0, 'async_trait>(
    &'life0 self,
    _client: Client,
    _event: ChannelCreated
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]
fn channeldeleted<'life0, 'async_trait>(
    &'life0 self,
    _client: Client,
    _event: ChannelDeleted
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]
fn clientmoved<'life0, 'async_trait>(
    &'life0 self,
    _client: Client,
    _event: ClientMoved
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]
fn textmessage<'life0, 'async_trait>(
    &'life0 self,
    _client: Client,
    _event: TextMessage
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]
fn tokenused<'life0, 'async_trait>(
    &'life0 self,
    _client: Client,
    _event: TokenUsed
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

Loading content...