#[non_exhaustive]pub enum PlayerItemEvent {
StatusChanged {
status: PlayerItemStatus,
error_message: Option<String>,
},
PresentationSizeChanged(Size),
TimeJumped {
has_originating_participant: bool,
},
DidPlayToEnd,
FailedToPlayToEnd {
error_message: Option<String>,
},
PlaybackStalled,
NewAccessLogEntry,
NewErrorLogEntry,
RecommendedTimeOffsetFromLiveDidChange(Time),
MediaSelectionChanged,
}Expand description
Events emitted by PlayerItemObserver.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
StatusChanged
PresentationSizeChanged(Size)
TimeJumped
DidPlayToEnd
FailedToPlayToEnd
PlaybackStalled
NewAccessLogEntry
NewErrorLogEntry
RecommendedTimeOffsetFromLiveDidChange(Time)
MediaSelectionChanged
Trait Implementations§
Source§impl Clone for PlayerItemEvent
impl Clone for PlayerItemEvent
Source§fn clone(&self) -> PlayerItemEvent
fn clone(&self) -> PlayerItemEvent
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 PlayerItemEvent
impl Debug for PlayerItemEvent
Source§impl PartialEq for PlayerItemEvent
impl PartialEq for PlayerItemEvent
Source§fn eq(&self, other: &PlayerItemEvent) -> bool
fn eq(&self, other: &PlayerItemEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PlayerItemEvent
Auto Trait Implementations§
impl Freeze for PlayerItemEvent
impl RefUnwindSafe for PlayerItemEvent
impl Send for PlayerItemEvent
impl Sync for PlayerItemEvent
impl Unpin for PlayerItemEvent
impl UnsafeUnpin for PlayerItemEvent
impl UnwindSafe for PlayerItemEvent
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