pub struct ControllerState {
pub supported_commands: Vec<String>,
pub volume: Option<u8>,
pub muted: Option<bool>,
pub repeat: Option<String>,
pub shuffle: Option<bool>,
pub seek_max_ms: Option<u64>,
}Expand description
The controller object of ServerState.
Fields§
§supported_commands: Vec<String>Media commands the group currently accepts.
volume: Option<u8>Volume of the whole group in the range 0-100.
muted: Option<bool>Mute state of the whole group.
repeat: Option<String>Repeat mode: off, one or all.
shuffle: Option<bool>Whether shuffle is enabled.
seek_max_ms: Option<u64>Maximum absolute position a seek may target, in milliseconds.
A server that advertises seek includes it; absent means the server offers no absolute seek
position, so only seek_relative is meaningful.
Trait Implementations§
Source§impl Clone for ControllerState
impl Clone for ControllerState
Source§impl Debug for ControllerState
impl Debug for ControllerState
Source§impl Default for ControllerState
impl Default for ControllerState
Source§impl<'de> Deserialize<'de> for ControllerState
impl<'de> Deserialize<'de> for ControllerState
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
impl Eq for ControllerState
Source§impl PartialEq for ControllerState
impl PartialEq for ControllerState
Source§impl Serialize for ControllerState
impl Serialize for ControllerState
impl StructuralPartialEq for ControllerState
Auto Trait Implementations§
impl Forget for ControllerState
impl Freeze for ControllerState
impl Move for ControllerState
impl RefUnwindSafe for ControllerState
impl Send for ControllerState
impl Sync for ControllerState
impl Unpin for ControllerState
impl UnsafeUnpin for ControllerState
impl UnwindSafe for ControllerState
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