[][src]Trait lavalink_rs::gateway::LavalinkEventHandler

pub trait LavalinkEventHandler {
#[must_use]    fn stats<'life0, 'async_trait>(
        &'life0 self,
        _client: Arc<Mutex<LavalinkClient>>,
        _event: Stats
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Sync + 'async_trait
, { ... }
#[must_use] fn player_update<'life0, 'async_trait>(
        &'life0 self,
        _client: Arc<Mutex<LavalinkClient>>,
        _event: PlayerUpdate
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Sync + 'async_trait
, { ... }
#[must_use] fn track_start<'life0, 'async_trait>(
        &'life0 self,
        _client: Arc<Mutex<LavalinkClient>>,
        _event: TrackStart
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Sync + 'async_trait
, { ... }
#[must_use] fn track_finish<'life0, 'async_trait>(
        &'life0 self,
        _client: Arc<Mutex<LavalinkClient>>,
        _event: TrackFinish
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Sync + 'async_trait
, { ... } }

Provided methods

#[must_use]fn stats<'life0, 'async_trait>(
    &'life0 self,
    _client: Arc<Mutex<LavalinkClient>>,
    _event: Stats
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: Sync + 'async_trait, 

Periodic event that returns the statistics of the server.

#[must_use]fn player_update<'life0, 'async_trait>(
    &'life0 self,
    _client: Arc<Mutex<LavalinkClient>>,
    _event: PlayerUpdate
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: Sync + 'async_trait, 

Event that triggers when a player updates.

#[must_use]fn track_start<'life0, 'async_trait>(
    &'life0 self,
    _client: Arc<Mutex<LavalinkClient>>,
    _event: TrackStart
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: Sync + 'async_trait, 

Event that triggers when a track starts playing.

#[must_use]fn track_finish<'life0, 'async_trait>(
    &'life0 self,
    _client: Arc<Mutex<LavalinkClient>>,
    _event: TrackFinish
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: Sync + 'async_trait, 

Event that triggers when a track finishes playing.

Loading content...

Implementors

Loading content...