Trait ts3::event::EventHandler

source ·
pub trait EventHandler: Send + Sync {
Show 13 methods // Provided methods fn cliententerview<'life0, 'async_trait>( &'life0 self, _client: Client, _event: ClientEnterView ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn clientleftview<'life0, 'async_trait>( &'life0 self, _client: Client, _event: ClientLeftView ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn serveredited<'life0, 'async_trait>( &'life0 self, _client: Client, _event: ServerEdited ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn channeldescriptionchanged<'life0, 'async_trait>( &'life0 self, _client: Client, _event: ChannelDescriptionChanged ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn channelpasswordchanged<'life0, 'async_trait>( &'life0 self, _client: Client, _event: ChannelPasswordChanged ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn channelmoved<'life0, 'async_trait>( &'life0 self, _client: Client, _event: ChannelMoved ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn channeledited<'life0, 'async_trait>( &'life0 self, _client: Client, _event: ChannelEdited ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn channelcreated<'life0, 'async_trait>( &'life0 self, _client: Client, _event: ChannelCreated ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn channeldeleted<'life0, 'async_trait>( &'life0 self, _client: Client, _event: ChannelDeleted ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn clientmoved<'life0, 'async_trait>( &'life0 self, _client: Client, _event: ClientMoved ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn textmessage<'life0, 'async_trait>( &'life0 self, _client: Client, _event: TextMessage ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn tokenused<'life0, 'async_trait>( &'life0 self, _client: Client, _event: TokenUsed ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait { ... } fn error(&self, _client: Client, error: Error) { ... }
}
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§

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

fn error(&self, _client: Client, error: Error)

Implementors§