Enum twilight_lavalink::model::outgoing::OutgoingEvent[][src]

#[non_exhaustive]pub enum OutgoingEvent {
    Destroy(Destroy),
    Equalizer(Equalizer),
    Pause(Pause),
    Play(Play),
    Seek(Seek),
    Stop(Stop),
    VoiceUpdate(VoiceUpdate),
    Volume(Volume),
}

An outgoing event to send to Lavalink.

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.
Destroy(Destroy)

Destroy a player for a guild.

Equalizer(Equalizer)

Equalize a player.

Pause(Pause)

Pause or unpause a player.

Play(Play)

Play a track.

Seek(Seek)

Seek a player’s active track to a new position.

Stop(Stop)

Stop a player.

VoiceUpdate(VoiceUpdate)

A combined voice server and voice state update.

Volume(Volume)

Set the volume of a player.

Trait Implementations

impl Clone for OutgoingEvent[src]

impl Debug for OutgoingEvent[src]

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

impl From<Destroy> for OutgoingEvent[src]

impl From<Equalizer> for OutgoingEvent[src]

impl From<Pause> for OutgoingEvent[src]

impl From<Play> for OutgoingEvent[src]

impl From<Seek> for OutgoingEvent[src]

impl From<Stop> for OutgoingEvent[src]

impl From<VoiceUpdate> for OutgoingEvent[src]

impl From<Volume> for OutgoingEvent[src]

impl PartialEq<OutgoingEvent> for OutgoingEvent[src]

impl Serialize for OutgoingEvent[src]

impl StructuralPartialEq for OutgoingEvent[src]

Auto Trait Implementations

impl RefUnwindSafe for OutgoingEvent

impl Send for OutgoingEvent

impl Sync for OutgoingEvent

impl Unpin for OutgoingEvent

impl UnwindSafe for OutgoingEvent

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>,