pub enum Error {
    NoOutputSpaceForHeader,
    NoOutputSpaceForEscEscapeSequence,
    NoOutputSpaceForEndEscapeSequence,
    NoOutputSpaceForInputData,
    NoOutputSpaceForEndByte,
    BadHeaderDecode,
    BadEscapeSequenceDecode,
}
Expand description

Errors encountered by SLIP.

Variants§

§

NoOutputSpaceForHeader

The encoder does not have enough space to write the SLIP header.

§

NoOutputSpaceForEscEscapeSequence

The encoder does not have enough space to write an ESC, ESC_ESC sequence.

§

NoOutputSpaceForEndEscapeSequence

The encoder does not have enough space to write an ESC, END_ESC sequence.

§

NoOutputSpaceForInputData

The encoder does not have enough space to write input data into the output buffer.

§

NoOutputSpaceForEndByte

The encoder does not have enough space to write the final SLIP end byte.

§

BadHeaderDecode

The decoder cannot process the SLIP header.

§

BadEscapeSequenceDecode

The decoder cannot process the SLIP escape sequence.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.