pub enum DoCanError {
DeviceError(CanError),
Iso14229Error(Iso14229Error),
UnexpectedSubFunction {
service: Service,
expect: u8,
actual: u8,
},
UnexpectedResponse {
expect: Service,
actual: Service,
},
UnexpectedTransferSequence {
expect: u8,
actual: u8,
},
NRCError {
service: Service,
code: Code,
},
IsoTpError(IsoTpError),
SecurityAlgoError(String),
OtherError(String),
NotImplement(Service),
}Variants§
DeviceError(CanError)
Iso14229Error(Iso14229Error)
UnexpectedSubFunction
UnexpectedResponse
UnexpectedTransferSequence
NRCError
IsoTpError(IsoTpError)
SecurityAlgoError(String)
OtherError(String)
NotImplement(Service)
Trait Implementations§
Source§impl Debug for DoCanError
impl Debug for DoCanError
Source§impl Display for DoCanError
impl Display for DoCanError
Source§impl Error for DoCanError
impl Error for DoCanError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl From<Error> for DoCanError
impl From<Error> for DoCanError
Source§impl From<Error> for DoCanError
impl From<Error> for DoCanError
Source§fn from(error: Iso14229Error) -> Self
fn from(error: Iso14229Error) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DoCanError
impl From<Error> for DoCanError
Source§fn from(error: IsoTpError) -> Self
fn from(error: IsoTpError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DoCanError
impl RefUnwindSafe for DoCanError
impl Send for DoCanError
impl Sync for DoCanError
impl Unpin for DoCanError
impl UnwindSafe for DoCanError
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