pub enum S101Error {
InvalidFrameMarker(u8),
InvalidSlot(u8),
InvalidMessageType(u8),
InvalidCommand(u8),
CrcMismatch {
expected: u16,
actual: u16,
},
FrameTooLarge {
size: usize,
max: usize,
},
IncompleteFrame,
InvalidEscapeSequence,
}Expand description
S101 framing errors.
Variants§
InvalidFrameMarker(u8)
Invalid frame marker.
InvalidSlot(u8)
Invalid slot number.
InvalidMessageType(u8)
Invalid message type.
InvalidCommand(u8)
Invalid command.
CrcMismatch
CRC mismatch.
FrameTooLarge
Frame too large.
IncompleteFrame
Incomplete frame.
InvalidEscapeSequence
Invalid escape sequence.
Trait Implementations§
Source§impl Error for S101Error
impl Error for S101Error
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()
Auto Trait Implementations§
impl Freeze for S101Error
impl RefUnwindSafe for S101Error
impl Send for S101Error
impl Sync for S101Error
impl Unpin for S101Error
impl UnsafeUnpin for S101Error
impl UnwindSafe for S101Error
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