#[non_exhaustive]pub enum TrackEventType {
End,
Start,
WebsocketClosed,
}
Expand description
The type of track event that was received.
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.
End
A track for a player ended.
Start
A track for a player started.
WebsocketClosed
The voice websocket connection to Discord has been closed.
Trait Implementations§
Source§impl Clone for TrackEventType
impl Clone for TrackEventType
Source§fn clone(&self) -> TrackEventType
fn clone(&self) -> TrackEventType
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 TrackEventType
impl Debug for TrackEventType
Source§impl<'de> Deserialize<'de> for TrackEventType
impl<'de> Deserialize<'de> for TrackEventType
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 PartialEq for TrackEventType
impl PartialEq for TrackEventType
Source§impl Serialize for TrackEventType
impl Serialize for TrackEventType
impl Copy for TrackEventType
impl Eq for TrackEventType
impl StructuralPartialEq for TrackEventType
Auto Trait Implementations§
impl Freeze for TrackEventType
impl RefUnwindSafe for TrackEventType
impl Send for TrackEventType
impl Sync for TrackEventType
impl Unpin for TrackEventType
impl UnwindSafe for TrackEventType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more