pub trait EcuNRC: From<u8> {
    // Required methods
    fn desc(&self) -> String;
    fn is_ecu_busy(&self) -> bool;
    fn is_wrong_diag_mode(&self) -> bool;
    fn is_repeat_request(&self) -> bool;
}
Expand description

ECU Negative response code trait

Required Methods§

source

fn desc(&self) -> String

Description of the NRC

source

fn is_ecu_busy(&self) -> bool

Returns true if the NRC implies the ECU is busy, and the Diagnostic server should wait for the ECU’s real response

source

fn is_wrong_diag_mode(&self) -> bool

Returns true if the NRC means the ECU is in the wrong diagnostic mode to process the current service

source

fn is_repeat_request(&self) -> bool

Returns true if the ECU has asked the diagnostic server to repeat the request message

Object Safety§

This trait is not object safe.

Implementors§