#[non_exhaustive]pub enum OutgoingEvent {
Destroy(Destroy),
Equalizer(Equalizer),
Pause(Pause),
Play(Play),
Seek(Seek),
Stop(Stop),
VoiceUpdate(VoiceUpdate),
Volume(Volume),
}
Expand description
An outgoing event to send to Lavalink.
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.
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§
Source§impl Clone for OutgoingEvent
impl Clone for OutgoingEvent
Source§fn clone(&self) -> OutgoingEvent
fn clone(&self) -> OutgoingEvent
Returns a copy 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 OutgoingEvent
impl Debug for OutgoingEvent
Source§impl<'de> Deserialize<'de> for OutgoingEvent
impl<'de> Deserialize<'de> for OutgoingEvent
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<Destroy> for OutgoingEvent
impl From<Destroy> for OutgoingEvent
Source§fn from(event: Destroy) -> OutgoingEvent
fn from(event: Destroy) -> OutgoingEvent
Converts to this type from the input type.
Source§impl From<Equalizer> for OutgoingEvent
impl From<Equalizer> for OutgoingEvent
Source§fn from(event: Equalizer) -> OutgoingEvent
fn from(event: Equalizer) -> OutgoingEvent
Converts to this type from the input type.
Source§impl From<Pause> for OutgoingEvent
impl From<Pause> for OutgoingEvent
Source§fn from(event: Pause) -> OutgoingEvent
fn from(event: Pause) -> OutgoingEvent
Converts to this type from the input type.
Source§impl From<Play> for OutgoingEvent
impl From<Play> for OutgoingEvent
Source§fn from(event: Play) -> OutgoingEvent
fn from(event: Play) -> OutgoingEvent
Converts to this type from the input type.
Source§impl From<Seek> for OutgoingEvent
impl From<Seek> for OutgoingEvent
Source§fn from(event: Seek) -> OutgoingEvent
fn from(event: Seek) -> OutgoingEvent
Converts to this type from the input type.
Source§impl From<Stop> for OutgoingEvent
impl From<Stop> for OutgoingEvent
Source§fn from(event: Stop) -> OutgoingEvent
fn from(event: Stop) -> OutgoingEvent
Converts to this type from the input type.
Source§impl From<VoiceUpdate> for OutgoingEvent
impl From<VoiceUpdate> for OutgoingEvent
Source§fn from(event: VoiceUpdate) -> OutgoingEvent
fn from(event: VoiceUpdate) -> OutgoingEvent
Converts to this type from the input type.
Source§impl From<Volume> for OutgoingEvent
impl From<Volume> for OutgoingEvent
Source§fn from(event: Volume) -> OutgoingEvent
fn from(event: Volume) -> OutgoingEvent
Converts to this type from the input type.
Source§impl PartialEq for OutgoingEvent
impl PartialEq for OutgoingEvent
Source§impl Serialize for OutgoingEvent
impl Serialize for OutgoingEvent
impl StructuralPartialEq for OutgoingEvent
Auto Trait Implementations§
impl Freeze for OutgoingEvent
impl RefUnwindSafe for OutgoingEvent
impl Send for OutgoingEvent
impl Sync for OutgoingEvent
impl Unpin for OutgoingEvent
impl UnwindSafe for OutgoingEvent
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