Struct ecu_diagnostics::kwp2000::VehicleInfo
source · pub struct VehicleInfo {
pub model_year: u8,
pub vehicle_code: u8,
pub body_style: u8,
pub country_code: u8,
}
Expand description
Vehicle identification. Used by [super::Kwp2000DiagnosticServer::read_ecu_vehicle_info]
Fields§
§model_year: u8
Vehicle model year
vehicle_code: u8
Vehicle code
body_style: u8
Vehicle body style code
country_code: u8
Vehicle country code
Trait Implementations§
source§impl Clone for VehicleInfo
impl Clone for VehicleInfo
source§fn clone(&self) -> VehicleInfo
fn clone(&self) -> VehicleInfo
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 VehicleInfo
impl Debug for VehicleInfo
source§impl Ord for VehicleInfo
impl Ord for VehicleInfo
source§fn cmp(&self, other: &VehicleInfo) -> Ordering
fn cmp(&self, other: &VehicleInfo) -> 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 VehicleInfo
impl PartialEq for VehicleInfo
source§fn eq(&self, other: &VehicleInfo) -> bool
fn eq(&self, other: &VehicleInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VehicleInfo
impl PartialOrd for VehicleInfo
source§fn partial_cmp(&self, other: &VehicleInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &VehicleInfo) -> 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 VehicleInfo
impl Eq for VehicleInfo
impl StructuralPartialEq for VehicleInfo
Auto Trait Implementations§
impl Freeze for VehicleInfo
impl RefUnwindSafe for VehicleInfo
impl Send for VehicleInfo
impl Sync for VehicleInfo
impl Unpin for VehicleInfo
impl UnwindSafe for VehicleInfo
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