pub enum DiagError {
Show 15 variants
NotSupported,
ECUError {
code: UdsError,
rsid: UdsCommand,
def: Option<String>,
},
EmptyResponse,
WrongMessage {
want: UdsCommand,
received: UdsCommand,
},
WrongPciType {
want: PciType,
received: PciType,
},
ServerNotRunning,
InvalidResponseLength,
ParameterInvalid,
ChannelError,
HardwareError,
NotImplemented(String),
MismatchedIdentResponse {
want: u16,
received: u16,
},
Timeout,
FrameError {
error: FrameError,
},
Others,
}Expand description
Diagnostic server error
Variants§
NotSupported
ECUError
Negative Response from ECU
Fields
§
rsid: UdsCommandRequested SID
EmptyResponse
Response empty
WrongMessage
ECU Responded but send a message that wasn’t a reply for the sent message
WrongPciType
ECU Responded wrong PCI type
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
FrameError
Other Diagnostic Error
Fields
§
error: FrameErrorOthers
Other Diagnostic Error
Trait Implementations§
Source§impl Error for DiagError
impl Error for DiagError
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()
Auto Trait Implementations§
impl Freeze for DiagError
impl RefUnwindSafe for DiagError
impl Send for DiagError
impl Sync for DiagError
impl Unpin for DiagError
impl UnsafeUnpin 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