pub enum DiagError {
NotSupported,
ECUError {
code: u8,
def: Option<String>,
},
EmptyResponse,
WrongMessage,
ServerNotRunning,
InvalidResponseLength,
ParameterInvalid,
ChannelError,
HardwareError,
NotImplemented(String),
MismatchedIdentResponse {
want: u16,
received: u16,
},
Timeout,
}Expand description
Diagnostic server error
Variants§
NotSupported
ECUError
Fields
EmptyResponse
Response empty
WrongMessage
ECU Responded but send a message that wasn’t a reply for the sent message
ServerNotRunning
Diagnostic server terminated!?
InvalidResponseLength
ECU Responded with a message, but the length was incorrect
ParameterInvalid
A parameter given to the function is invalid. Check the function’s documentation for more information
ChannelError
Error with underlying communication channel
HardwareError
Device hardware error
NotImplemented(String)
Feauture is not iumplemented yet
MismatchedIdentResponse
Mismatched PID response ID
Timeout
timeout response
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiagError
impl RefUnwindSafe for DiagError
impl Send for DiagError
impl Sync for DiagError
impl Unpin for DiagError
impl UnwindSafe for DiagError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more