pub struct StreamProperties {Show 14 fields
pub playback_status: Option<String>,
pub loop_status: Option<String>,
pub shuffle: Option<bool>,
pub volume: Option<u16>,
pub mute: Option<bool>,
pub rate: Option<f64>,
pub position: Option<f64>,
pub can_go_next: bool,
pub can_go_previous: bool,
pub can_play: bool,
pub can_pause: bool,
pub can_seek: bool,
pub can_control: bool,
pub metadata: Option<Value>,
}Expand description
Stream properties (MPRIS-style metadata and capabilities).
Fields§
§playback_status: Option<String>Playback status (Playing, Paused, Stopped).
loop_status: Option<String>Loop status (None, Track, Playlist).
shuffle: Option<bool>Shuffle mode.
volume: Option<u16>Volume (0–100).
mute: Option<bool>Mute state.
rate: Option<f64>Playback rate.
position: Option<f64>Position in seconds.
can_go_next: boolCan skip to next track.
can_go_previous: boolCan skip to previous track.
can_play: boolCan start playback.
can_pause: boolCan pause playback.
can_seek: boolCan seek within track.
can_control: boolCan control playback at all.
metadata: Option<Value>Track metadata (artist, title, album, etc.).
Trait Implementations§
Source§impl Clone for StreamProperties
impl Clone for StreamProperties
Source§fn clone(&self) -> StreamProperties
fn clone(&self) -> StreamProperties
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 StreamProperties
impl Debug for StreamProperties
Source§impl Default for StreamProperties
impl Default for StreamProperties
Source§fn default() -> StreamProperties
fn default() -> StreamProperties
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StreamProperties
impl<'de> Deserialize<'de> for StreamProperties
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StreamProperties, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StreamProperties, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for StreamProperties
impl Serialize for StreamProperties
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
Auto Trait Implementations§
impl Freeze for StreamProperties
impl RefUnwindSafe for StreamProperties
impl Send for StreamProperties
impl Sync for StreamProperties
impl Unpin for StreamProperties
impl UnsafeUnpin for StreamProperties
impl UnwindSafe for StreamProperties
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