pub enum CanErrorDecodingFailure {
NotAnError,
UnknownErrorType(u32),
NotEnoughData(u8),
InvalidControllerProblem,
InvalidViolationType,
InvalidLocation,
InvalidTransceiverError,
}Expand description
Error decoding a CanError from a CanFrame.
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
sourceimpl Clone for CanErrorDecodingFailure
impl Clone for CanErrorDecodingFailure
sourcefn clone(&self) -> CanErrorDecodingFailure
fn clone(&self) -> CanErrorDecodingFailure
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CanErrorDecodingFailure
impl Debug for CanErrorDecodingFailure
sourceimpl Display for CanErrorDecodingFailure
impl Display for CanErrorDecodingFailure
sourceimpl Error for CanErrorDecodingFailure
impl Error for CanErrorDecodingFailure
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more