Enum socketcan::errors::CanErrorDecodingFailure
source · pub enum CanErrorDecodingFailure {
NotAnError,
UnknownErrorType(u32),
NotEnoughData(u8),
InvalidControllerProblem,
InvalidViolationType,
InvalidLocation,
InvalidTransceiverError,
}
Expand description
Error decoding a CanError from a CanErrorFrame.
Variants§
NotAnError
The supplied CANFrame did not have the error bit set.
UnknownErrorType(u32)
The error type is not known and cannot be decoded.
NotEnoughData(u8)
The error type indicated a need for additional information as data
,
but the data
field was not long enough.
InvalidControllerProblem
The error type ControllerProblem
was indicated and additional
information found, but not recognized.
InvalidViolationType
The type of the ProtocolViolation was not valid
InvalidLocation
A location was specified for a ProtocolViolation, but the location was not valid.
InvalidTransceiverError
The supplied transciever error was invalid.
Trait Implementations§
source§impl Clone for CanErrorDecodingFailure
impl Clone for CanErrorDecodingFailure
source§fn clone(&self) -> CanErrorDecodingFailure
fn clone(&self) -> CanErrorDecodingFailure
Returns a copy 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 CanErrorDecodingFailure
impl Debug for CanErrorDecodingFailure
source§impl Display for CanErrorDecodingFailure
impl Display for CanErrorDecodingFailure
source§impl Error for CanErrorDecodingFailure
impl Error for CanErrorDecodingFailure
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl Copy for CanErrorDecodingFailure
Auto Trait Implementations§
impl RefUnwindSafe for CanErrorDecodingFailure
impl Send for CanErrorDecodingFailure
impl Sync for CanErrorDecodingFailure
impl Unpin for CanErrorDecodingFailure
impl UnwindSafe for CanErrorDecodingFailure
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