Enum ecu_diagnostics::DiagError
source · pub enum DiagError {
NotSupported,
ECUError {
code: u8,
def: Option<String>,
},
EmptyResponse,
WrongMessage,
ServerNotRunning,
InvalidResponseLength,
ParameterInvalid,
ChannelError(ChannelError),
HardwareError(Arc<HardwareError>),
NotImplemented(String),
MismatchedIdentResponse {
want: u16,
received: u16,
},
}
Expand description
Diagnostic server error
Variants§
NotSupported
The Diagnostic server does not support the request
ECUError
Fields
Diagnostic error code from the ECU itself
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(ChannelError)
Error with underlying communication channel
HardwareError(Arc<HardwareError>)
Device hardware error
NotImplemented(String)
Feauture is not iumplemented yet
MismatchedIdentResponse
Mismatched PID response ID
Trait Implementations§
source§impl Error for DiagError
impl Error for DiagError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Arc<HardwareError>> for DiagError
impl From<Arc<HardwareError>> for DiagError
source§fn from(source: Arc<HardwareError>) -> Self
fn from(source: Arc<HardwareError>) -> Self
Converts to this type from the input type.
source§impl From<ChannelError> for DiagError
impl From<ChannelError> for DiagError
source§fn from(source: ChannelError) -> Self
fn from(source: ChannelError) -> Self
Converts to this type from the input type.
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