pub struct PlayerStatus {
pub state: SessionState,
pub elapsed_ms: u64,
pub duration_ms: Option<u64>,
pub width: u32,
pub height: u32,
pub fps: f32,
pub frame_count: Option<u64>,
}Expand description
IPC payload emitted on the player-status event and returned from the
player_open / player_status commands.
Fields§
§state: SessionStateLifecycle state — see SessionState.
elapsed_ms: u64Wallclock elapsed since play was first called for this file, in
milliseconds. Zero when paused at start; frozen across pause.
duration_ms: Option<u64>Total duration in milliseconds, when the decoder reports it.
None for live streams or formats without a duration header.
width: u32Native frame width (pixels). 0 when no file is open.
height: u32Native frame height (pixels). 0 when no file is open.
fps: f32Source frame rate (frames per second). 0.0 when no file is open.
frame_count: Option<u64>Total frame count when the decoder reports it. None for live
streams or formats without a frame-count header.
Implementations§
Source§impl PlayerStatus
impl PlayerStatus
Trait Implementations§
Source§impl Clone for PlayerStatus
impl Clone for PlayerStatus
Source§fn clone(&self) -> PlayerStatus
fn clone(&self) -> PlayerStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlayerStatus
impl Debug for PlayerStatus
Source§impl<'de> Deserialize<'de> for PlayerStatus
impl<'de> Deserialize<'de> for PlayerStatus
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
Source§impl PartialEq for PlayerStatus
impl PartialEq for PlayerStatus
Source§fn eq(&self, other: &PlayerStatus) -> bool
fn eq(&self, other: &PlayerStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PlayerStatus
impl Serialize for PlayerStatus
impl StructuralPartialEq for PlayerStatus
Auto Trait Implementations§
impl Freeze for PlayerStatus
impl RefUnwindSafe for PlayerStatus
impl Send for PlayerStatus
impl Sync for PlayerStatus
impl Unpin for PlayerStatus
impl UnsafeUnpin for PlayerStatus
impl UnwindSafe for PlayerStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more