Struct ecu_diagnostics::kwp2000::DiagnosticInfo
source · [−]pub struct DiagnosticInfo(_);
Expand description
Wrapper for ECU diagnostic information
Implementations
sourceimpl DiagnosticInfo
impl DiagnosticInfo
sourcepub fn is_production_ecu(&self) -> bool
pub fn is_production_ecu(&self) -> bool
Returns true if the ECU software is production. If this function returns false, then the software running on the ECU is considered to be development only
sourcepub fn get_daimler_mmc_ecu_id(&self) -> u8
pub fn get_daimler_mmc_ecu_id(&self) -> u8
Returns the unique ECU ID allocated by Daimler / MMC for the specific ECU
sourcepub fn is_boot_sw(&self) -> bool
pub fn is_boot_sw(&self) -> bool
Returns true if the diagnostic info of the ECU implies it is currently in boot mode, not being able to execute the main ECU program
sourcepub fn get_info_id(&self) -> u16
pub fn get_info_id(&self) -> u16
Returns the entire diagnostic info ID as a u16
Trait Implementations
sourceimpl Clone for DiagnosticInfo
impl Clone for DiagnosticInfo
sourcefn clone(&self) -> DiagnosticInfo
fn clone(&self) -> DiagnosticInfo
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 DiagnosticInfo
impl Debug for DiagnosticInfo
sourceimpl Ord for DiagnosticInfo
impl Ord for DiagnosticInfo
sourceimpl PartialEq<DiagnosticInfo> for DiagnosticInfo
impl PartialEq<DiagnosticInfo> for DiagnosticInfo
sourcefn eq(&self, other: &DiagnosticInfo) -> bool
fn eq(&self, other: &DiagnosticInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DiagnosticInfo) -> bool
fn ne(&self, other: &DiagnosticInfo) -> bool
This method tests for !=
.
sourceimpl PartialOrd<DiagnosticInfo> for DiagnosticInfo
impl PartialOrd<DiagnosticInfo> for DiagnosticInfo
sourcefn partial_cmp(&self, other: &DiagnosticInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &DiagnosticInfo) -> 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 DiagnosticInfo
impl Eq for DiagnosticInfo
impl StructuralEq for DiagnosticInfo
impl StructuralPartialEq for DiagnosticInfo
Auto Trait Implementations
impl RefUnwindSafe for DiagnosticInfo
impl Send for DiagnosticInfo
impl Sync for DiagnosticInfo
impl Unpin for DiagnosticInfo
impl UnwindSafe for DiagnosticInfo
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