pub struct RecorderEvent { /* private fields */ }Expand description
An owned recorder event, including original bounded diagnostic text.
Implementations§
Source§impl RecorderEvent
impl RecorderEvent
Sourcepub fn kind(&self) -> RecorderEventKind
pub fn kind(&self) -> RecorderEventKind
Event kind.
Sourcepub fn tracks(&self) -> MediaTypes
pub fn tracks(&self) -> MediaTypes
The track a WriteFailed event
concerns; empty for every other event.
Sourcepub fn dropped_packet_count(&self) -> u64
pub fn dropped_packet_count(&self) -> u64
Packet count attached to this particular event, not all session drops.
Sourcepub fn first_pts(&self) -> FilePosition
pub fn first_pts(&self) -> FilePosition
First packet timestamp where applicable.
Sourcepub fn last_pts(&self) -> FilePosition
pub fn last_pts(&self) -> FilePosition
Last packet timestamp where applicable.
Sourcepub fn format_text(&self) -> &EventText
pub fn format_text(&self) -> &EventText
Legacy textual format description.
Sourcepub fn source_format(&self) -> Result<&SourceFormat, SdkResultDefect>
pub fn source_format(&self) -> Result<&SourceFormat, SdkResultDefect>
Structured format description. 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 RecorderEvent
impl Clone for RecorderEvent
Source§impl Debug for RecorderEvent
impl Debug for RecorderEvent
impl Eq for RecorderEvent
Source§impl Hash for RecorderEvent
impl Hash for RecorderEvent
Source§impl PartialEq for RecorderEvent
impl PartialEq for RecorderEvent
impl StructuralPartialEq for RecorderEvent
Auto Trait Implementations§
impl Freeze for RecorderEvent
impl RefUnwindSafe for RecorderEvent
impl Send for RecorderEvent
impl Sync for RecorderEvent
impl Unpin for RecorderEvent
impl UnsafeUnpin for RecorderEvent
impl UnwindSafe for RecorderEvent
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