[][src]Enum sensirion_hdlc::HDLCError

pub enum HDLCError {
    DuplicateSpecialChar,
    FendCharInData,
    MissingTradeChar,
    MissingFirstFend,
    MissingFinalFend,
    TooMuchData,
    TooFewData,
    InvalidChecksum,
    TooMuchDecodedData,
}

Common error for HDLC actions.

Variants

DuplicateSpecialChar

Catches duplicate special characters.

FendCharInData

Catches a random sync char in the data.

MissingTradeChar

Catches a random swap char, fesc, in the data with no tfend or tfesc.

MissingFirstFend

No first fend on the message.

MissingFinalFend

No final fend on the message.

TooMuchData

Too much data to be converted into a SHDLC frame

TooFewData

Too few data to be converted from a SHDLC frame

InvalidChecksum

Checksum for decoded Frame is invalid

TooMuchDecodedData

More than 259 bytes resulted after decoding SHDLC frame

Trait Implementations

impl Debug for HDLCError[src]

impl PartialEq<HDLCError> for HDLCError[src]

impl StructuralPartialEq for HDLCError[src]

Auto Trait Implementations

impl Send for HDLCError

impl Sync for HDLCError

impl Unpin for HDLCError

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.