pub struct PlayerStatus {
pub duration: Option<i64>,
pub player_state: Option<PlayerState>,
pub timeline_function: Option<TimelineFunction>,
pub repeat_mode: Option<RepeatMode>,
pub shuffle_on: Option<bool>,
pub content_type: Option<ContentType>,
pub error: Option<Error>,
pub is_live: Option<bool>,
/* private fields */
}
Expand description
Status of a media player.
Fields§
§duration: Option<i64>
Total duration of playing media.
If this value is omitted, the duration is unknown, not applicable or unchanged. Initially, the duration is assumed to be unknown.
player_state: Option<PlayerState>
State of the player.
If this field is omitted, the value is unchanged. Initially, the value is IDLE
.
timeline_function: Option<TimelineFunction>
A playback function that describes the position and rate of
play through the media as a function of CLOCK_MONOTONIC
.
If this field is omitted, the value is unchanged. Initially, reference_delta
is 1 and
the remaining constituent fields are 0.
repeat_mode: Option<RepeatMode>
Repeat mode of the player.
If this field is omitted, the value is unchanged. Initially, the value is NONE
.
shuffle_on: Option<bool>
Shuffle mode of the player.
If this field is omitted, the value is unchanged. Initially, the value is false.
content_type: Option<ContentType>
The type of content playing back.
If this field is omitted, the value is unchanged. Initially, the value is OTHER
.
error: Option<Error>
An error the player may have encountered.
This field is omitted unless there is an error. Once an error is indicated, it cannot be rescinded.
is_live: Option<bool>
Whether the playing media is live (such as television or a live stream).
If this field is omitted, the value is unchanged. Initially, the value is false.
Trait Implementations§
source§impl Clone for PlayerStatus
impl Clone for PlayerStatus
source§fn clone(&self) -> PlayerStatus
fn clone(&self) -> PlayerStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PlayerStatus
impl Debug for PlayerStatus
source§impl Decode<PlayerStatus> for PlayerStatus
impl Decode<PlayerStatus> for PlayerStatus
source§impl Default for PlayerStatus
impl Default for PlayerStatus
source§fn default() -> PlayerStatus
fn default() -> PlayerStatus
source§impl Encode<PlayerStatus> for &PlayerStatus
impl Encode<PlayerStatus> for &PlayerStatus
source§impl PartialEq for PlayerStatus
impl PartialEq for PlayerStatus
source§fn eq(&self, other: &PlayerStatus) -> bool
fn eq(&self, other: &PlayerStatus) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for PlayerStatus
impl TypeMarker for PlayerStatus
§type Owned = PlayerStatus
type Owned = PlayerStatus
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 PlayerStatus
impl ValueTypeMarker for PlayerStatus
§type Borrowed<'a> = &'a PlayerStatus
type Borrowed<'a> = &'a PlayerStatus
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more