#[non_exhaustive]pub enum IncomingEvent {
    PlayerUpdate(PlayerUpdate),
    Stats(Stats),
    TrackEnd(TrackEnd),
    TrackStart(TrackStart),
    WeboscketClosed(WebsocketClosed),
}Expand description
An incoming event from a Lavalink node.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PlayerUpdate(PlayerUpdate)
An update about the information of a player.
Stats(Stats)
New statistics about a node and its host.
TrackEnd(TrackEnd)
A track ended.
TrackStart(TrackStart)
A track started.
WeboscketClosed(WebsocketClosed)
The voice websocket connection was closed.
Trait Implementations§
Source§impl Clone for IncomingEvent
 
impl Clone for IncomingEvent
Source§fn clone(&self) -> IncomingEvent
 
fn clone(&self) -> IncomingEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for IncomingEvent
 
impl Debug for IncomingEvent
Source§impl<'de> Deserialize<'de> for IncomingEvent
 
impl<'de> Deserialize<'de> for IncomingEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PlayerUpdate> for IncomingEvent
 
impl From<PlayerUpdate> for IncomingEvent
Source§fn from(event: PlayerUpdate) -> IncomingEvent
 
fn from(event: PlayerUpdate) -> IncomingEvent
Converts to this type from the input type.
Source§impl From<Stats> for IncomingEvent
 
impl From<Stats> for IncomingEvent
Source§fn from(event: Stats) -> IncomingEvent
 
fn from(event: Stats) -> IncomingEvent
Converts to this type from the input type.
Source§impl PartialEq for IncomingEvent
 
impl PartialEq for IncomingEvent
Source§impl Serialize for IncomingEvent
 
impl Serialize for IncomingEvent
impl StructuralPartialEq for IncomingEvent
Auto Trait Implementations§
impl Freeze for IncomingEvent
impl RefUnwindSafe for IncomingEvent
impl Send for IncomingEvent
impl Sync for IncomingEvent
impl Unpin for IncomingEvent
impl UnwindSafe for IncomingEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more