[][src]Enum framed::error::Error

pub enum Error {
    CobsDecodeFailed,
    CobsEncodeFailed,
    ChecksumError,
    EofDuringFrame,
    EofBeforeFrame,
    Io(Error),
    Ssmarshal(Error),
}

Errors from this crate.

Variants

CobsDecodeFailed

COBS decode failed

CobsEncodeFailed

COBS encode failed

ChecksumError

Checksum error: the received frame was corrupted.

EofDuringFrame

End of data while reading a frame; we received some of a frame but it was incomplete.

EofBeforeFrame

End of data before a frame started; we received none of a frame.

Io(Error)

Forwarded io::Error.

Ssmarshal(Error)

Forwarded ssmarshal::Error.

Methods

impl Error[src]

pub fn is_corrupt_frame(&self) -> bool[src]

Returns true if the error represents a corrupted frame. Data may have been lost but the decoder should decode the next frame correctly.

Trait Implementations

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl Debug for Error[src]

Auto Trait Implementations

impl Send for Error

impl Sync for Error

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

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

The type returned in the event of a conversion error.