#[non_exhaustive]#[repr(u8)]pub enum CanErrorType {
UNKNOWN_ERROR = 0,
BIT_ERROR = 1,
FORM_ERROR = 2,
BIT_STUFFING_ERROR = 3,
CRC_ERROR = 4,
ACK_ERROR = 5,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UNKNOWN_ERROR = 0
< Unspecified error.
BIT_ERROR = 1
< CAN bit error.
FORM_ERROR = 2
< CAN format error.
BIT_STUFFING_ERROR = 3
< Bit stuffing error.
CRC_ERROR = 4
< Checksum error.
ACK_ERROR = 5
< Acknowledgement error.
Trait Implementations§
Source§impl Clone for CanErrorType
impl Clone for CanErrorType
Source§fn clone(&self) -> CanErrorType
fn clone(&self) -> CanErrorType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CanErrorType
impl Debug for CanErrorType
Source§impl Hash for CanErrorType
impl Hash for CanErrorType
Source§impl Ord for CanErrorType
impl Ord for CanErrorType
Source§fn cmp(&self, other: &CanErrorType) -> Ordering
fn cmp(&self, other: &CanErrorType) -> Ordering
1.21.0 · 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
Source§impl PartialEq for CanErrorType
impl PartialEq for CanErrorType
Source§impl PartialOrd for CanErrorType
impl PartialOrd for CanErrorType
impl Copy for CanErrorType
impl Eq for CanErrorType
impl StructuralPartialEq for CanErrorType
Auto Trait Implementations§
impl Freeze for CanErrorType
impl RefUnwindSafe for CanErrorType
impl Send for CanErrorType
impl Sync for CanErrorType
impl Unpin for CanErrorType
impl UnsafeUnpin for CanErrorType
impl UnwindSafe for CanErrorType
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