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

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 Debug for PesError[src]

impl PartialEq<PesError> for PesError[src]

impl StructuralPartialEq for PesError[src]

Auto Trait Implementations

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.