Enum twilight_lavalink::model::incoming::IncomingEvent[][src]

#[non_exhaustive]pub enum IncomingEvent {
    PlayerUpdate(PlayerUpdate),
    Stats(Stats),
    TrackEnd(TrackEnd),
    TrackStart(TrackStart),
}

An incoming event from a Lavalink node.

Variants (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.

Trait Implementations

impl Clone for IncomingEvent[src]

impl Debug for IncomingEvent[src]

impl<'de> Deserialize<'de> for IncomingEvent[src]

impl From<PlayerUpdate> for IncomingEvent[src]

impl From<Stats> for IncomingEvent[src]

impl PartialEq<IncomingEvent> for IncomingEvent[src]

impl Serialize for IncomingEvent[src]

impl StructuralPartialEq for IncomingEvent[src]

Auto Trait Implementations

impl RefUnwindSafe for IncomingEvent

impl Send for IncomingEvent

impl Sync for IncomingEvent

impl Unpin for IncomingEvent

impl UnwindSafe for IncomingEvent

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,