Struct PlayerStatus
pub struct PlayerStatus {
pub video: SlotState,
pub audio: SlotState,
pub mode: RenditionMode,
pub rendition: Option<String>,
pub switching_to: Option<String>,
pub switch_error: Option<ByPtr<Error>>,
pub decoder: Option<String>,
}Expand description
The state of a player.
Fields§
§video: SlotStateThe video slot.
audio: SlotStateThe audio slot.
mode: RenditionModeThe rendition mode asked for.
rendition: Option<String>The rendition on screen.
switching_to: Option<String>A rendition whose decoder is warming up to take over.
switch_error: Option<ByPtr<Error>>Why the last switch or pin could not be honoured.
decoder: Option<String>The decoder backend running, such as vaapi.
Trait Implementations§
§impl Clone for PlayerStatus
impl Clone for PlayerStatus
§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 more§impl Debug for PlayerStatus
impl Debug for PlayerStatus
§impl Default for PlayerStatus
impl Default for PlayerStatus
§fn default() -> PlayerStatus
fn default() -> PlayerStatus
Returns the “default value” for a type. Read more
§impl PartialEq for PlayerStatus
impl PartialEq for PlayerStatus
impl StructuralPartialEq for PlayerStatus
Auto Trait Implementations§
impl !RefUnwindSafe for PlayerStatus
impl !UnwindSafe for PlayerStatus
impl Freeze for PlayerStatus
impl Send for PlayerStatus
impl Sync for PlayerStatus
impl Unpin for PlayerStatus
impl UnsafeUnpin for PlayerStatus
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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