pub struct PlayerInfoDelta {
pub local: Option<bool>,
pub player_status: Option<PlayerStatus>,
pub metadata: Option<Metadata>,
pub media_images: Option<Vec<MediaImage>>,
pub player_capabilities: Option<PlayerCapabilities>,
pub interruption_behavior: Option<InterruptionBehavior>,
/* private fields */
}
Expand description
When emitted, fields that have changed should be set. The first emission to a new client should be a snapshot.
Fields§
§local: Option<bool>
Whether the entry point for the media into our device network is the local machine; this should be true if this is the device streaming from a music service, but false or omitted if this machine is just receiving an audio stream to act as a speaker.
If omitted, the value is unchanged. Initially, this value is true
.
player_status: Option<PlayerStatus>
The status of the player.
If omitted, all constituent values are unchanged. If a field within PlayerStatus
is
omitted, its value is unchanged. Initial values are indicated for each field in
player_status
.
metadata: Option<Metadata>
The metadata of the playing media.
If omitted, the metadata is unchanged. Initially, there is no metadata.
media_images: Option<Vec<MediaImage>>
The images associated with the playing media.
If omitted, the media images are unchanged. An empty vector indicates that there are no media images, which is also the initial state.
player_capabilities: Option<PlayerCapabilities>
The capabilities of the player.
If omitted, the capabilities are unchanged. Initially, the player is assumed to have no capabilities.
interruption_behavior: Option<InterruptionBehavior>
The behavior the player would like to engage in when interrupted by something, such as an alarm.
If omitted, the behavior is unchanged. Initially, the value is NONE
.
Trait Implementations§
Source§impl Clone for PlayerInfoDelta
impl Clone for PlayerInfoDelta
Source§fn clone(&self) -> PlayerInfoDelta
fn clone(&self) -> PlayerInfoDelta
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PlayerInfoDelta
impl Debug for PlayerInfoDelta
Source§impl<D: ResourceDialect> Decode<PlayerInfoDelta, D> for PlayerInfoDelta
impl<D: ResourceDialect> Decode<PlayerInfoDelta, D> for PlayerInfoDelta
Source§impl Default for PlayerInfoDelta
impl Default for PlayerInfoDelta
Source§fn default() -> PlayerInfoDelta
fn default() -> PlayerInfoDelta
Source§impl<D: ResourceDialect> Encode<PlayerInfoDelta, D> for &PlayerInfoDelta
impl<D: ResourceDialect> Encode<PlayerInfoDelta, D> for &PlayerInfoDelta
Source§impl PartialEq for PlayerInfoDelta
impl PartialEq for PlayerInfoDelta
Source§impl TypeMarker for PlayerInfoDelta
impl TypeMarker for PlayerInfoDelta
Source§type Owned = PlayerInfoDelta
type Owned = PlayerInfoDelta
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for PlayerInfoDelta
impl ValueTypeMarker for PlayerInfoDelta
Source§type Borrowed<'a> = &'a PlayerInfoDelta
type Borrowed<'a> = &'a PlayerInfoDelta
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for PlayerInfoDelta
impl StructuralPartialEq for PlayerInfoDelta
Auto Trait Implementations§
impl Freeze for PlayerInfoDelta
impl RefUnwindSafe for PlayerInfoDelta
impl Send for PlayerInfoDelta
impl Sync for PlayerInfoDelta
impl Unpin for PlayerInfoDelta
impl UnwindSafe for PlayerInfoDelta
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)