#[non_exhaustive]pub struct PlaybackState {
pub supported_commands: Vec<String>,
pub volume: Option<u8>,
pub muted: Option<bool>,
}Expand description
Playback state as the server describes it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.supported_commands: Vec<String>Commands the server accepts from clients in the same group.
volume: Option<u8>Group volume in the range 0-100, when the server reports one.
muted: Option<bool>Group mute state, when the server reports one.
Trait Implementations§
Source§impl Clone for PlaybackState
impl Clone for PlaybackState
Source§impl Debug for PlaybackState
impl Debug for PlaybackState
Source§impl Default for PlaybackState
impl Default for PlaybackState
impl Eq for PlaybackState
Source§impl PartialEq for PlaybackState
impl PartialEq for PlaybackState
impl StructuralPartialEq for PlaybackState
Auto Trait Implementations§
impl Forget for PlaybackState
impl Freeze for PlaybackState
impl Move 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