pub enum ShuffleState {
Off,
On,
}Expand description
Shuffle state of the player.
Variants§
Off
Play tracks in their original order.
For example tracks from a playlist will be played in the order they appear in the playlist.
On
Shuffle the tracks in the queue.
Trait Implementations§
Source§impl Clone for ShuffleState
impl Clone for ShuffleState
Source§fn clone(&self) -> ShuffleState
fn clone(&self) -> ShuffleState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ShuffleState
impl Debug for ShuffleState
Source§impl Default for ShuffleState
impl Default for ShuffleState
Source§fn default() -> ShuffleState
fn default() -> ShuffleState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ShuffleState
impl<'de> Deserialize<'de> for ShuffleState
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 Display for ShuffleState
impl Display for ShuffleState
Source§impl From<ShuffleState> for bool
impl From<ShuffleState> for bool
Source§fn from(s: ShuffleState) -> bool
fn from(s: ShuffleState) -> bool
Converts to this type from the input type.
Source§impl From<bool> for ShuffleState
impl From<bool> for ShuffleState
Source§impl Hash for ShuffleState
impl Hash for ShuffleState
Source§impl PartialEq for ShuffleState
impl PartialEq for ShuffleState
Source§fn eq(&self, other: &ShuffleState) -> bool
fn eq(&self, other: &ShuffleState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ShuffleState
impl Serialize for ShuffleState
impl Copy for ShuffleState
impl Eq for ShuffleState
impl StructuralPartialEq for ShuffleState
Auto Trait Implementations§
impl Freeze for ShuffleState
impl RefUnwindSafe for ShuffleState
impl Send for ShuffleState
impl Sync for ShuffleState
impl Unpin for ShuffleState
impl UnsafeUnpin for ShuffleState
impl UnwindSafe for ShuffleState
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