Enum serial_line_ip::Error
source · 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.