Enum ecu_diagnostics::dynamic_diag::DiagAction
source · pub enum DiagAction {
SetSessionMode(DiagSessionMode),
EcuReset,
Other {
sid: u8,
data: Vec<u8>,
},
}
Expand description
Diagnostic server request action
Variants§
SetSessionMode(DiagSessionMode)
Set session mode
EcuReset
ECU Reset message (On completion, ECU will be back in default diag mode)
Other
Other request
Trait Implementations§
source§impl Clone for DiagAction
impl Clone for DiagAction
source§fn clone(&self) -> DiagAction
fn clone(&self) -> DiagAction
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 DiagAction
impl Debug for DiagAction
source§impl Ord for DiagAction
impl Ord for DiagAction
source§fn cmp(&self, other: &DiagAction) -> Ordering
fn cmp(&self, other: &DiagAction) -> 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 DiagAction
impl PartialEq for DiagAction
source§fn eq(&self, other: &DiagAction) -> bool
fn eq(&self, other: &DiagAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DiagAction
impl PartialOrd for DiagAction
source§fn partial_cmp(&self, other: &DiagAction) -> Option<Ordering>
fn partial_cmp(&self, other: &DiagAction) -> 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 Eq for DiagAction
impl StructuralPartialEq for DiagAction
Auto Trait Implementations§
impl Freeze for DiagAction
impl RefUnwindSafe for DiagAction
impl Send for DiagAction
impl Sync for DiagAction
impl Unpin for DiagAction
impl UnwindSafe for DiagAction
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