pub enum CanError {
InvalidId,
InvalidDlc(u8),
BufferTooShort {
expected: usize,
actual: usize,
},
InvalidFlags,
Transport(DiagError),
}Variants§
InvalidId
The CAN ID value exceeds the valid range for its type. Standard: 0x000–0x7FF, Extended: 0x00000000–0x1FFFFFFF.
InvalidDlc(u8)
The data length code exceeds the physical maximum for the frame type. Classic CAN: 0–8, CAN FD: valid DLC values mapping to 0–64.
BufferTooShort
The frame buffer is too short to contain the declared DLC worth of data.
InvalidFlags
A flag combination in the frame is illegal per the CAN/CAN FD spec. e.g. RTR set on a CAN FD frame, BRS set without EDL.
Transport(DiagError)
Underlying transport error from ace-core.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CanError
impl RefUnwindSafe for CanError
impl Send for CanError
impl Sync for CanError
impl Unpin for CanError
impl UnsafeUnpin for CanError
impl UnwindSafe for CanError
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