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) -> PlaybackState
pub fn from_transport_state(state: &str) -> PlaybackState
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 · 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<PlaybackState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlaybackState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Fetchable for PlaybackState
impl Fetchable for PlaybackState
Source§type Operation = GetTransportInfoOperation
type Operation = GetTransportInfoOperation
The UPnP operation type used to fetch this property
Source§fn build_operation() -> Result<ComposableOperation<Self::Operation>, SdkError>
fn build_operation() -> Result<ComposableOperation<Self::Operation>, SdkError>
Build the operation to fetch this property
Source§fn from_response(response: GetTransportInfoResponse) -> Self
fn from_response(response: GetTransportInfoResponse) -> Self
Convert the operation response to the property value
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§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl SonosProperty for PlaybackState
impl SonosProperty for PlaybackState
impl 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