pub enum PtsDts {
None,
PtsOnly(Result<Timestamp, TimestampError>),
Invalid,
Both {
pts: Result<Timestamp, TimestampError>,
dts: Result<Timestamp, TimestampError>,
},
}Expand description
Contains some combination of PTS and DTS timestamps (or maybe neither).
The timestamps will be wrapped in Result, in case an error in the stored timestamp syntax
means that it can’t be decoded.
Variants§
None
There are no timestamps present
PtsOnly(Result<Timestamp, TimestampError>)
Only Presentation Time Stamp is present
Invalid
the pts_dts_flags field contained an invalid value
Both
Both Presentation and Decode Time Stamps are present
Fields
§
pts: Result<Timestamp, TimestampError>Presentation Time Stamp
§
dts: Result<Timestamp, TimestampError>Decode Time Stamp
Trait Implementations§
impl Eq for PtsDts
impl StructuralPartialEq for PtsDts
Auto Trait Implementations§
impl Freeze for PtsDts
impl RefUnwindSafe for PtsDts
impl Send for PtsDts
impl Sync for PtsDts
impl Unpin for PtsDts
impl UnwindSafe for PtsDts
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