pub enum UdsError {
SidMismatch {
expected: u8,
received: u8,
raw_message: Vec<u8>,
},
DidMismatch {
expected: u16,
received: u16,
raw_message: Vec<u8>,
},
InvalidLength {
raw_message: Vec<u8>,
},
NRC {
nrc: NrcData,
},
UnknownNRC {
rejected_sid: u8,
unknown_nrc: u8,
},
ResponseEmpty,
UnsupportedSubfunction {
unsupported_subfunction: u8,
},
InvalidArgument,
ResponseIncorrect {
raw_message: Vec<u8>,
},
NotImplemented,
RequestEmpty,
CommunicationError {
error: UdsCommunicationError,
},
}
Expand description
Containing possible errors and negative responses
Variants§
SidMismatch
DidMismatch
InvalidLength
NRC
UnknownNRC
ResponseEmpty
UnsupportedSubfunction
InvalidArgument
ResponseIncorrect
NotImplemented
RequestEmpty
CommunicationError
Fields
§
error: UdsCommunicationError
Trait Implementations§
Source§impl Error for UdsError
impl Error for UdsError
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<UdsCommunicationError> for UdsError
impl From<UdsCommunicationError> for UdsError
Source§fn from(error: UdsCommunicationError) -> UdsError
fn from(error: UdsCommunicationError) -> UdsError
Converts to this type from the input type.
impl StructuralPartialEq for UdsError
Auto Trait Implementations§
impl Freeze for UdsError
impl RefUnwindSafe for UdsError
impl Send for UdsError
impl Sync for UdsError
impl Unpin for UdsError
impl UnwindSafe for UdsError
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