pub enum LoopState {
Off,
Track,
Playlist,
}Expand description
Specifies how the player loops playback.
Variants§
Off
The playback will stop when there are no more tracks to play.
Track
The current track will start again from the beginning once it has finished playing.
Playlist
The playback will loop through the entire queue.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LoopState
impl<'de> Deserialize<'de> for LoopState
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
impl Copy for LoopState
impl Eq for LoopState
impl StructuralPartialEq for LoopState
Auto Trait Implementations§
impl Freeze for LoopState
impl RefUnwindSafe for LoopState
impl Send for LoopState
impl Sync for LoopState
impl Unpin for LoopState
impl UnsafeUnpin for LoopState
impl UnwindSafe for LoopState
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