pub enum LoopStatus {
None,
Track,
Playlist,
}Expand description
A repeat / loop status.
Variants§
None
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 loops through a list of tracks.
Implementations§
Trait Implementations§
Source§impl Clone for LoopStatus
impl Clone for LoopStatus
impl Copy for LoopStatus
Source§impl Debug for LoopStatus
impl Debug for LoopStatus
Source§impl<'de> Deserialize<'de> for LoopStatus
impl<'de> Deserialize<'de> for LoopStatus
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 LoopStatus
impl Display for LoopStatus
impl Eq for LoopStatus
Source§impl From<LoopStatus> for Variant<'_>
impl From<LoopStatus> for Variant<'_>
Source§fn from(status: LoopStatus) -> Self
fn from(status: LoopStatus) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LoopStatus
impl PartialEq for LoopStatus
Source§impl Serialize for LoopStatus
impl Serialize for LoopStatus
impl StructuralPartialEq for LoopStatus
Source§impl<'a> TryFrom<Variant<'a>> for LoopStatus
impl<'a> TryFrom<Variant<'a>> for LoopStatus
Auto Trait Implementations§
impl Freeze for LoopStatus
impl RefUnwindSafe for LoopStatus
impl Send for LoopStatus
impl Sync for LoopStatus
impl Unpin for LoopStatus
impl UnsafeUnpin for LoopStatus
impl UnwindSafe for LoopStatus
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.