pub enum FrameError {
EmptyData,
InvalidStartByte,
InvalidStopByte,
WrongLengthIndication,
LengthShort,
LengthShorterThanSix {
length: usize,
},
WrongChecksum {
expected: u8,
actual: u8,
},
InvalidControlInformation {
byte: u8,
},
InvalidFunction {
byte: u8,
},
}
Variants§
EmptyData
InvalidStartByte
InvalidStopByte
WrongLengthIndication
LengthShort
LengthShorterThanSix
WrongChecksum
InvalidControlInformation
InvalidFunction
Trait Implementations§
Source§impl Debug for FrameError
impl Debug for FrameError
Source§impl From<FrameError> for MbusError
impl From<FrameError> for MbusError
Source§fn from(error: FrameError) -> Self
fn from(error: FrameError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FrameError
impl PartialEq for FrameError
impl Eq for FrameError
impl StructuralPartialEq for FrameError
Auto Trait Implementations§
impl Freeze for FrameError
impl RefUnwindSafe for FrameError
impl Send for FrameError
impl Sync for FrameError
impl Unpin for FrameError
impl UnwindSafe for FrameError
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