Struct SessionInfoDelta
pub struct SessionInfoDelta {
pub domain: Option<String>,
pub is_local: Option<bool>,
pub is_locally_active: Option<bool>,
pub player_status: Option<PlayerStatus>,
pub metadata: Option<Metadata>,
pub media_images: Option<Vec<MediaImage>>,
pub player_capabilities: Option<PlayerCapabilities>,
/* private fields */
}
Expand description
SessionInfoDelta holds a description of a media session.
Fields§
§domain: Option<String>
The domain on which the session takes place. A domain identifies a set of mutually compatible media targets and sessions; sessions on a domain may be played back on targets of the same domain.
This field is always present.
is_local: Option<bool>
Whether the source of the media playback is on this device.
This field is present only if known.
is_locally_active: Option<bool>
If this is true
, the playback is taking place local to the device.
Playing on the device speaker is local, playing on a remote speaker
is not. This is only set when the session is playing back; a paused
session is not active.
This field is always present.
player_status: Option<PlayerStatus>
The status of the player.
This field is always present.
metadata: Option<Metadata>
Metadata describing the media session.
This field is always present.
media_images: Option<Vec<MediaImage>>
Images associated with the media or its source.
This field is always present.
player_capabilities: Option<PlayerCapabilities>
The capabilities the player of the media implements.
This field is always present.
Trait Implementations§
§impl Clone for SessionInfoDelta
impl Clone for SessionInfoDelta
§fn clone(&self) -> SessionInfoDelta
fn clone(&self) -> SessionInfoDelta
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for SessionInfoDelta
impl Debug for SessionInfoDelta
§impl<D> Decode<SessionInfoDelta, D> for SessionInfoDeltawhere
D: ResourceDialect,
impl<D> Decode<SessionInfoDelta, D> for SessionInfoDeltawhere
D: ResourceDialect,
§fn new_empty() -> SessionInfoDelta
fn new_empty() -> SessionInfoDelta
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for SessionInfoDelta
impl Default for SessionInfoDelta
§fn default() -> SessionInfoDelta
fn default() -> SessionInfoDelta
§impl<D> Encode<SessionInfoDelta, D> for &SessionInfoDeltawhere
D: ResourceDialect,
impl<D> Encode<SessionInfoDelta, D> for &SessionInfoDeltawhere
D: ResourceDialect,
§impl PartialEq for SessionInfoDelta
impl PartialEq for SessionInfoDelta
§impl TypeMarker for SessionInfoDelta
impl TypeMarker for SessionInfoDelta
§type Owned = SessionInfoDelta
type Owned = SessionInfoDelta
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§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.§impl ValueTypeMarker for SessionInfoDelta
impl ValueTypeMarker for SessionInfoDelta
§type Borrowed<'a> = &'a SessionInfoDelta
type Borrowed<'a> = &'a SessionInfoDelta
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<SessionInfoDelta as TypeMarker>::Owned,
) -> <SessionInfoDelta as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<SessionInfoDelta as TypeMarker>::Owned, ) -> <SessionInfoDelta as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.