[][src]Enum adts_reader::AdtsHeaderError

pub enum AdtsHeaderError {
    BadSyncWord(u16),
    NotEnoughData {
        expected: usize,
        actual: usize,
    },
    BadFrameLength {
        minimum: usize,
        actual: usize,
    },
}

Variants

BadSyncWord(u16)

Indicates that the given buffer did not start with the required sequence of 12 '1'-bits (0xfff).

NotEnoughData

Fields of NotEnoughData

expected: usizeactual: usize
BadFrameLength

The frame_length field stored in the ADTS header is invalid as it holds a value smaller than the size of the header fields

Fields of BadFrameLength

minimum: usizeactual: usize

Trait Implementations

impl Debug for AdtsHeaderError[src]

Auto Trait Implementations

Blanket Implementations

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.

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

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

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