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

None

There are no timestamps present

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 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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.