[][src]Enum dlt_parse::ReadError

pub enum ReadError {
    UnexpectedEndOfSlice {
        minimum_size: usize,
        actual_size: usize,
    },
    LengthSmallerThenMinimum {
        required_length: usize,
        length: usize,
    },
    IoError(Error),
}

Errors that can occure on reading a dlt header.

Variants

UnexpectedEndOfSlice

Error if the slice is smaller then dlt length field or minimal size.

Fields of UnexpectedEndOfSlice

minimum_size: usizeactual_size: usize
LengthSmallerThenMinimum

Error if the dlt length is smaller then the header the calculated header size based on the flags (+ minimum payload size of 4 bytes/octetets)

Fields of LengthSmallerThenMinimum

required_length: usizelength: usize
IoError(Error)

Standard io error.

Trait Implementations

impl From<Error> for ReadError[src]

impl Debug for ReadError[src]

Auto Trait Implementations

impl Send for ReadError

impl Sync for ReadError

Blanket Implementations

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

impl<T> From for 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.