pub enum DecodeError {
TooShort,
CrcMismatch,
UnknownMessage,
Malformed,
StaleFrame,
}Expand description
Errors returned by decoder operations.
Variants§
TooShort
The frame is shorter than a header, sequence, tick pair and CRC.
CrcMismatch
The CRC did not match; only the diagnostic counter changes.
UnknownMessage
No message in the set has this ID.
Malformed
The frame is structurally valid but a field encoding is not.
StaleFrame
The frame is late and the resync threshold has not been reached.
Trait Implementations§
Source§impl Clone for DecodeError
impl Clone for DecodeError
Source§impl Debug for DecodeError
impl Debug for DecodeError
impl Eq for DecodeError
Source§impl PartialEq for DecodeError
impl PartialEq for DecodeError
impl StructuralPartialEq for DecodeError
Auto Trait Implementations§
impl Freeze for DecodeError
impl RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl UnsafeUnpin for DecodeError
impl UnwindSafe for DecodeError
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