Struct ecu_diagnostics::kwp2000::DiagnosticInfo
source · pub struct DiagnosticInfo(/* private fields */);
Expand description
Wrapper for ECU diagnostic information
Implementations§
source§impl 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§
source§impl Clone for DiagnosticInfo
impl Clone for DiagnosticInfo
source§fn clone(&self) -> DiagnosticInfo
fn clone(&self) -> DiagnosticInfo
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 DiagnosticInfo
impl Debug for DiagnosticInfo
source§impl Ord for DiagnosticInfo
impl Ord for DiagnosticInfo
source§fn cmp(&self, other: &DiagnosticInfo) -> Ordering
fn cmp(&self, other: &DiagnosticInfo) -> 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 DiagnosticInfo
impl PartialEq for DiagnosticInfo
source§fn 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 ==
.source§impl PartialOrd for DiagnosticInfo
impl PartialOrd for DiagnosticInfo
source§fn partial_cmp(&self, other: &DiagnosticInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &DiagnosticInfo) -> 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 DiagnosticInfo
impl Eq for DiagnosticInfo
impl StructuralPartialEq for DiagnosticInfo
Auto Trait Implementations§
impl Freeze for DiagnosticInfo
impl RefUnwindSafe for DiagnosticInfo
impl Send for DiagnosticInfo
impl Sync for DiagnosticInfo
impl Unpin for DiagnosticInfo
impl UnwindSafe for DiagnosticInfo
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