Enum KissError
pub enum KissError {
FrameTooShort,
MissingStartDelimiter,
MissingEndDelimiter,
InvalidEscapeSequence,
EmptyFrame,
}Expand description
Errors that can occur during KISS frame processing.
Variants§
FrameTooShort
Frame is too short to contain a valid KISS header.
MissingStartDelimiter
Frame does not start with FEND.
MissingEndDelimiter
Frame does not end with FEND.
InvalidEscapeSequence
Invalid escape sequence (FESC not followed by TFEND or TFESC).
EmptyFrame
Frame body is empty (no type indicator byte).
Trait Implementations§
§impl Error for KissError
impl Error for KissError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl Eq for KissError
impl StructuralPartialEq for KissError
Auto Trait Implementations§
impl Freeze for KissError
impl RefUnwindSafe for KissError
impl Send for KissError
impl Sync for KissError
impl Unpin for KissError
impl UnwindSafe for KissError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more