pub struct PlayerState {
pub volume: Option<u8>,
pub muted: Option<bool>,
pub output_delay_ms: u32,
pub required_lead_time_ms: u32,
pub min_buffer_ms: u32,
pub supported_commands: Vec<String>,
pub format: Option<SupportedFormat>,
}Expand description
The player object of ClientState.
Fields§
§volume: Option<u8>Volume in the range 0-100; required when volume is in supported_commands.
muted: Option<bool>Mute state; required when mute is in supported_commands.
output_delay_ms: u32Output delay in milliseconds, compensating for delay beyond the audio port.
required_lead_time_ms: u32Minimum startup lead time in milliseconds.
min_buffer_ms: u32Requested minimum ongoing buffer duration in milliseconds.
supported_commands: Vec<String>Player commands the server may send: volume, mute and set_output_delay.
format: Option<SupportedFormat>Preferred audio format, one of the entries of
PlayerSupport::supported_formats; absent means no preference.
Trait Implementations§
Source§impl Clone for PlayerState
impl Clone for PlayerState
Source§impl Debug for PlayerState
impl Debug for PlayerState
Source§impl<'de> Deserialize<'de> for PlayerState
impl<'de> Deserialize<'de> for PlayerState
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 PlayerState
Source§impl PartialEq for PlayerState
impl PartialEq for PlayerState
Source§impl Serialize for PlayerState
impl Serialize for PlayerState
impl StructuralPartialEq for PlayerState
Auto Trait Implementations§
impl Forget for PlayerState
impl Freeze for PlayerState
impl Move for PlayerState
impl RefUnwindSafe for PlayerState
impl Send for PlayerState
impl Sync for PlayerState
impl Unpin for PlayerState
impl UnsafeUnpin for PlayerState
impl UnwindSafe for PlayerState
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