pub enum PlaybackState {
Playing,
Paused,
Stopped,
Transitioning,
}Expand description
Current playback state
Variants§
Implementations§
Source§impl PlaybackState
impl PlaybackState
Sourcepub fn from_transport_state(state: &str) -> Self
pub fn from_transport_state(state: &str) -> Self
Parse from UPnP transport state string
pub fn is_playing(&self) -> bool
pub fn is_paused(&self) -> bool
pub fn is_stopped(&self) -> bool
Trait Implementations§
Source§impl Clone for PlaybackState
impl Clone for PlaybackState
Source§fn clone(&self) -> PlaybackState
fn clone(&self) -> PlaybackState
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 PlaybackState
impl Debug for PlaybackState
Source§impl<'de> Deserialize<'de> for PlaybackState
impl<'de> Deserialize<'de> for PlaybackState
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 PlaybackState
impl PartialEq for PlaybackState
Source§impl Property for PlaybackState
impl Property for PlaybackState
Source§impl Serialize for PlaybackState
impl Serialize for PlaybackState
Source§impl SonosProperty for PlaybackState
impl SonosProperty for PlaybackState
Source§fn to_change(&self) -> Option<PropertyChange>
fn to_change(&self) -> Option<PropertyChange>
Wrap this value in its
PropertyChange variant, for the change event
payload. Read moreimpl StructuralPartialEq for PlaybackState
Auto Trait Implementations§
impl Freeze for PlaybackState
impl RefUnwindSafe for PlaybackState
impl Send for PlaybackState
impl Sync for PlaybackState
impl Unpin for PlaybackState
impl UnsafeUnpin for PlaybackState
impl UnwindSafe for PlaybackState
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