Enum ThreeErr
#[repr(u8)]pub enum ThreeErr {
LessThan3 = 0,
Timeout = 1,
Data = 2,
Protocol = 3,
}Variants§
LessThan3 = 0
Less than 3 errors received
Timeout = 1
More than 3 errors received, last error is timeout error
Data = 2
More than 3 errors received, last error is data error (CRC error)
Protocol = 3
More than 3 errors received, last error is protocol error (invalid PID, false EOP, bitstuffing error, SYNC error)
Implementations§
Trait Implementations§
impl Copy for ThreeErr
impl Eq for ThreeErr
§impl Ord for ThreeErr
impl Ord for ThreeErr
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialOrd for ThreeErr
impl PartialOrd for ThreeErr
impl StructuralPartialEq for ThreeErr
Auto Trait Implementations§
impl Freeze for ThreeErr
impl RefUnwindSafe for ThreeErr
impl Send for ThreeErr
impl Sync for ThreeErr
impl Unpin for ThreeErr
impl UnsafeUnpin for ThreeErr
impl UnwindSafe for ThreeErr
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