Struct ecu_diagnostics::dtc::DTC
source · pub struct DTC {
pub format: DTCFormatType,
pub raw: u32,
pub status: DTCStatus,
pub mil_on: bool,
pub readiness_flag: bool,
}
Expand description
Diagnostic trouble code (DTC) storage struct
Fields§
§format: DTCFormatType
The DTCFormatType of the DTC. This is used to interpret the raw value of the DTC
raw: u32
The raw value of the DTC according to the ECU
status: DTCStatus
Status of the DTC
mil_on: bool
Indication if the DTC turns on the MIL lamp (Malfunction indicator lamp). This usually means that the Check engine light is illuminated on the vehicles instrument cluster
readiness_flag: bool
Indication if the DTC conditions have been met since the last clear.
Implementations§
Trait Implementations§
source§impl Ord for DTC
impl Ord for DTC
source§impl PartialOrd for DTC
impl PartialOrd for DTC
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for DTC
impl Eq for DTC
impl StructuralPartialEq for DTC
Auto Trait Implementations§
impl Freeze for DTC
impl RefUnwindSafe for DTC
impl Send for DTC
impl Sync for DTC
impl Unpin for DTC
impl UnwindSafe for DTC
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