[][src]Enum mpeg2ts_reader::pes::PesError

pub enum PesError {
    FieldNotPresent,
    PtsDtsFlagsInvalid,
    NotEnoughData {
        requested: usize,
        available: usize,
    },
    MarkerBitNotSet,
}

Errors which may be encountered while processing PES data.

Variants

FieldNotPresent

The value of an optional field was requested, but the field is not actually present in the given PES data

PtsDtsFlagsInvalid

The pts_dts_flags field of the PES packet signals that DTS is present and PTS is not, which not a valid combination

NotEnoughData

There is not enough data in the buffer to hold the expected syntax element

Fields of NotEnoughData

requested: usize

the number of bytes required to hold the requested syntax element

available: usize

the number of bytes actually remaining in the buffer

MarkerBitNotSet

Marker bits are expected to always have the value 1 -- the value 0 presumably implies a parsing error.

Trait Implementations

impl PartialEq<PesError> for PesError[src]

impl Debug for PesError[src]

Auto Trait Implementations

impl Send for PesError

impl Sync for PesError

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.