Enum ecu_diagnostics::kwp2000::ClearDTCRange
source · pub enum ClearDTCRange {
AllPowertrain,
AllChassis,
AllBody,
AllNetwork,
AllDTCs,
SingleDTC(u16),
}
Expand description
Denotes a single or range of DTCs that can be cleared from the ECU
Command support matrix
DTCRange | Support by ECUs |
---|---|
ClearDTCRange::AllPowertrain | Optional |
ClearDTCRange::AllChassis | Optional |
ClearDTCRange::AllBody | Optional |
ClearDTCRange::AllNetwork | Optional |
ClearDTCRange::AllDTCs | Mandatory |
ClearDTCRange::SingleDTC | Optional |
Variants§
AllPowertrain
All powertrain related DTCs
AllChassis
All Chassis related DTCs
AllBody
All body related DTCs
AllNetwork
All network related DTCs
AllDTCs
All DTCs stored on the ECU
SingleDTC(u16)
Denotes a single specific DTC to clear.
Acceptable ranges:
- 0x0001-0x3FFF - Custom powertrain DTC
- 0x4001-0x7FFF - Custom chassis DTC
- 0x8001-0xBFFF - Custom body DTC
- 0xC001-0xFEFF - Custom network DTC
Trait Implementations§
source§impl Clone for ClearDTCRange
impl Clone for ClearDTCRange
source§fn clone(&self) -> ClearDTCRange
fn clone(&self) -> ClearDTCRange
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ClearDTCRange
impl Debug for ClearDTCRange
source§impl From<ClearDTCRange> for u16
impl From<ClearDTCRange> for u16
source§fn from(x: ClearDTCRange) -> Self
fn from(x: ClearDTCRange) -> Self
Converts to this type from the input type.
source§impl Ord for ClearDTCRange
impl Ord for ClearDTCRange
source§fn cmp(&self, other: &ClearDTCRange) -> Ordering
fn cmp(&self, other: &ClearDTCRange) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ClearDTCRange
impl PartialEq for ClearDTCRange
source§fn eq(&self, other: &ClearDTCRange) -> bool
fn eq(&self, other: &ClearDTCRange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ClearDTCRange
impl PartialOrd for ClearDTCRange
source§fn partial_cmp(&self, other: &ClearDTCRange) -> Option<Ordering>
fn partial_cmp(&self, other: &ClearDTCRange) -> Option<Ordering>
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 ClearDTCRange
impl Eq for ClearDTCRange
impl StructuralPartialEq for ClearDTCRange
Auto Trait Implementations§
impl Freeze for ClearDTCRange
impl RefUnwindSafe for ClearDTCRange
impl Send for ClearDTCRange
impl Sync for ClearDTCRange
impl Unpin for ClearDTCRange
impl UnwindSafe for ClearDTCRange
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