pub struct PlayerEvent { /* private fields */ }Expand description
An owned player event. Inline SDK strings are copied within their bounds.
Implementations§
Source§impl PlayerEvent
impl PlayerEvent
Sourcepub fn kind(&self) -> PlayerEventKind
pub fn kind(&self) -> PlayerEventKind
Event kind.
Sourcepub fn first_pts(&self) -> FilePosition
pub fn first_pts(&self) -> FilePosition
First packet timestamp where applicable; otherwise native zero.
Sourcepub fn last_pts(&self) -> FilePosition
pub fn last_pts(&self) -> FilePosition
Last packet timestamp where applicable; otherwise native zero.
Sourcepub fn source_timecode(&self) -> Option<Timecode>
pub fn source_timecode(&self) -> Option<Timecode>
The source’s original editorial timecode, recorded with the frame, when the SDK knows it. Unlike the file position it need not increase.
Sourcepub fn source_format(&self) -> Result<&SourceFormat, SdkResultDefect>
pub fn source_format(&self) -> Result<&SourceFormat, SdkResultDefect>
Source format snapshot; zero/empty fields may mean inapplicable. An unreadable format is withheld with its cause; the remaining event or probe fields are still delivered.
§Errors
The typed SDK-result defect that prevented decoding the format.
Trait Implementations§
Source§impl Clone for PlayerEvent
impl Clone for PlayerEvent
Source§impl Debug for PlayerEvent
impl Debug for PlayerEvent
impl Eq for PlayerEvent
Source§impl Hash for PlayerEvent
impl Hash for PlayerEvent
Source§impl PartialEq for PlayerEvent
impl PartialEq for PlayerEvent
impl StructuralPartialEq for PlayerEvent
Auto Trait Implementations§
impl Freeze for PlayerEvent
impl RefUnwindSafe for PlayerEvent
impl Send for PlayerEvent
impl Sync for PlayerEvent
impl Unpin for PlayerEvent
impl UnsafeUnpin for PlayerEvent
impl UnwindSafe for PlayerEvent
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