pub enum PlaybackStatus {
Playing,
Paused,
Stopped,
}Expand description
A playback state.
Variants§
Playing
A track is currently playing.
Paused
A track is currently paused.
Stopped
There is no track currently playing.
Implementations§
Trait Implementations§
Source§impl Clone for PlaybackStatus
impl Clone for PlaybackStatus
impl Copy for PlaybackStatus
Source§impl Debug for PlaybackStatus
impl Debug for PlaybackStatus
Source§impl<'de> Deserialize<'de> for PlaybackStatus
impl<'de> Deserialize<'de> for PlaybackStatus
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 PlaybackStatus
impl Display for PlaybackStatus
impl Eq for PlaybackStatus
Source§impl From<PlaybackStatus> for Variant<'_>
impl From<PlaybackStatus> for Variant<'_>
Source§fn from(status: PlaybackStatus) -> Self
fn from(status: PlaybackStatus) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PlaybackStatus
impl PartialEq for PlaybackStatus
Source§impl Serialize for PlaybackStatus
impl Serialize for PlaybackStatus
impl StructuralPartialEq for PlaybackStatus
Auto Trait Implementations§
impl Freeze for PlaybackStatus
impl RefUnwindSafe for PlaybackStatus
impl Send for PlaybackStatus
impl Sync for PlaybackStatus
impl Unpin for PlaybackStatus
impl UnsafeUnpin for PlaybackStatus
impl UnwindSafe for PlaybackStatus
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.