Enum ecu_diagnostics::uds::ResetType
source · [−]pub enum ResetType {
HardReset,
KeyOffReset,
SoftReset,
EnableRapidPowerShutDown,
DisableRapidPowerShutDown,
Other(u8),
}
Expand description
Options for resetting the ECU
Variants
HardReset
Signals the ECU to perform a hard-reset, simulating a forceful power off/on cycle
This might result in both non-volatile memory and volatile memory locations being re-initialized
KeyOffReset
Signals the ECU to perform a simulated key off/on cycle, simulating the usual key-off/on cycle
This typically results in the preservation of non-volatile memory, but volatile memory will be re-initialized
SoftReset
Signals the ECU to perform a soft reset, simply rebooting the current application running on it.
This will result in the preservation of both non-volatile and volatile memory
EnableRapidPowerShutDown
Enables a rapid power shutdown on the ECU during a key-off cycle.
IMPORTANT: Once this has been used, the diagnostic server cannot send any other messages other than ECUReset in order to not disturb the rapid power shutdown function.
DisableRapidPowerShutDown
Disables a rapid power shutdown on the ECU during a key-off cycle.
Other(u8)
Other OEM defined power mode
Trait Implementations
sourceimpl Ord for ResetType
impl Ord for ResetType
sourceimpl PartialOrd<ResetType> for ResetType
impl PartialOrd<ResetType> for ResetType
sourcefn partial_cmp(&self, other: &ResetType) -> Option<Ordering>
fn partial_cmp(&self, other: &ResetType) -> 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 ResetType
impl Eq for ResetType
impl StructuralEq for ResetType
impl StructuralPartialEq for ResetType
Auto Trait Implementations
impl RefUnwindSafe for ResetType
impl Send for ResetType
impl Sync for ResetType
impl Unpin for ResetType
impl UnwindSafe for ResetType
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