[][src]Enum dash7_alp::codec::ParseFail

pub enum ParseFail {
    MissingBytes(usize),
    Error {
        error: ParseError,
        offset: usize,
    },
}

Parsing Fails This represents the cases where the parsing is impossible with the currently given data.

Variants

MissingBytes(usize)

Data is still missing to complete the parsing. This failure returns the minimum number of bytes required to finish this parsing.

Error

A parsing error occured due to the data content. This means that the data is unparseable.

Fields of Error

error: ParseErroroffset: usize

Methods

impl ParseFail[src]

pub fn inc_offset(self, n: usize) -> Self[src]

Internal method

Trait Implementations

impl Clone for ParseFail[src]

impl Debug for ParseFail[src]

impl PartialEq<ParseFail> for ParseFail[src]

impl StructuralPartialEq for ParseFail[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.