pub enum RepeatState {
Off,
Track,
Context,
}Expand description
The repeat state of the playback.
Variants§
Off
After the current item ends, it won’t repeat.
Track
After the current item ends, the item will be repeated.
Context
After the current item ends, the context of the item will be repeated (e.g. the playlist).
Trait Implementations§
Source§impl Clone for RepeatState
impl Clone for RepeatState
Source§fn clone(&self) -> RepeatState
fn clone(&self) -> RepeatState
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 RepeatState
impl Debug for RepeatState
Source§impl<'de> Deserialize<'de> for RepeatState
impl<'de> Deserialize<'de> for RepeatState
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 RepeatState
impl PartialEq for RepeatState
Source§fn eq(&self, other: &RepeatState) -> bool
fn eq(&self, other: &RepeatState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RepeatState
impl StructuralPartialEq for RepeatState
Auto Trait Implementations§
impl Freeze for RepeatState
impl RefUnwindSafe for RepeatState
impl Send for RepeatState
impl Sync for RepeatState
impl Unpin for RepeatState
impl UnsafeUnpin for RepeatState
impl UnwindSafe for RepeatState
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