Enum mpeg2ts_reader::pes::PtsDts [−][src]
pub enum PtsDts {
None,
PtsOnly(Result<Timestamp, TimestampError>),
Invalid,
Both {
pts: Result<Timestamp, TimestampError>,
dts: Result<Timestamp, TimestampError>,
},
}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
There are no timestamps present
PtsOnly(Result<Timestamp, TimestampError>)Only Presentation Time Stamp is present
the pts_dts_flags field contained an invalid value
Both Presentation and Decode Time Stamps are present
Fields of Both
pts: Result<Timestamp, TimestampError>Presentation Time Stamp
dts: Result<Timestamp, TimestampError>Decode Time Stamp
Trait Implementations
impl Debug for PtsDts[src]
impl PartialEq<PtsDts> for PtsDts[src]
impl StructuralPartialEq for PtsDts[src]
Auto Trait Implementations
impl RefUnwindSafe for PtsDts
impl Send for PtsDts
impl Sync for PtsDts
impl Unpin for PtsDts
impl UnwindSafe for PtsDts
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,