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
sourceimpl Clone for ClearDTCRange
impl Clone for ClearDTCRange
sourcefn clone(&self) -> ClearDTCRange
fn clone(&self) -> ClearDTCRange
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ClearDTCRange
impl Debug for ClearDTCRange
sourceimpl From<ClearDTCRange> for u16
impl From<ClearDTCRange> for u16
sourcefn from(x: ClearDTCRange) -> Self
fn from(x: ClearDTCRange) -> Self
Converts to this type from the input type.
sourceimpl Ord for ClearDTCRange
impl Ord for ClearDTCRange
sourceimpl PartialEq<ClearDTCRange> for ClearDTCRange
impl PartialEq<ClearDTCRange> for ClearDTCRange
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ClearDTCRange) -> bool
fn ne(&self, other: &ClearDTCRange) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ClearDTCRange> for ClearDTCRange
impl PartialOrd<ClearDTCRange> for ClearDTCRange
sourcefn partial_cmp(&self, other: &ClearDTCRange) -> Option<Ordering>
fn partial_cmp(&self, other: &ClearDTCRange) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl Copy for ClearDTCRange
impl Eq for ClearDTCRange
impl StructuralEq for ClearDTCRange
impl StructuralPartialEq for ClearDTCRange
Auto Trait Implementations
impl RefUnwindSafe for ClearDTCRange
impl Send for ClearDTCRange
impl Sync for ClearDTCRange
impl Unpin for ClearDTCRange
impl UnwindSafe for ClearDTCRange
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more