Enum mpeg2ts_reader::pes::TimestampError[][src]

pub enum TimestampError {
    IncorrectPrefixBits {
        expected: u8,
        actual: u8,
    },
    MarkerBitNotSet {
        bit_number: u8,
    },
}

Detail about the formatting problem which prevented a Timestamp value being parsed.

Variants

IncorrectPrefixBits

Parsing the timestamp failed because the ‘prefix-bit’ values within the timestamp did not have the expected values

Fields of IncorrectPrefixBits

expected: u8

expected prefix-bits for this timestamp

actual: u8

the actual, incorrect bits that were present

MarkerBitNotSet

Parsing the timestamp failed because a ‘marker-bit’ value within the timestamp did not have the expected value

Fields of MarkerBitNotSet

bit_number: u8

the bit-index of the bit which should have been 1, but was found to be 0

Trait Implementations

impl Debug for TimestampError[src]

impl PartialEq<TimestampError> for TimestampError[src]

impl StructuralPartialEq for TimestampError[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.