pub struct VehicleIdentificationResponse {
pub vin: Vin,
pub logical_address: LogicalAddress,
pub eid: Eid,
pub gid: Option<Gid>,
pub further_action: FurtherActionRequired,
pub vin_gid_sync_status: VinGidSyncStatus,
}Expand description
Vehicle identiifcation response / Vehicle announcement
This is the response to VehicleIdentificationRequest, sent by a DoIP
entity to a DoIP external tester.
Fields§
§vin: VinVehicle Identification Number.
logical_address: LogicalAddressLogical address of the DoIP entity.
eid: EidUnique entitiy identification (EID), e.g. MAC address of network interface.
gid: Option<Gid>None when value not set (as indicated by 0x00 or 0xFF).
further_action: FurtherActionRequiredFurther action to be taken by the external tester.
vin_gid_sync_status: VinGidSyncStatusIndicates whether all entites have synced information about VIN or GID.
Trait Implementations§
Source§impl Clone for VehicleIdentificationResponse
impl Clone for VehicleIdentificationResponse
Source§fn clone(&self) -> VehicleIdentificationResponse
fn clone(&self) -> VehicleIdentificationResponse
Returns a duplicate 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 PartialEq for VehicleIdentificationResponse
impl PartialEq for VehicleIdentificationResponse
Source§fn eq(&self, other: &VehicleIdentificationResponse) -> bool
fn eq(&self, other: &VehicleIdentificationResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Payload for VehicleIdentificationResponse
impl Payload for VehicleIdentificationResponse
Source§fn payload_type() -> PayloadType
fn payload_type() -> PayloadType
Get the payload type for this payload.
Source§fn read<T: Read>(
reader: &mut T,
payload_length: usize,
) -> Result<Self, DoIpError>
fn read<T: Read>( reader: &mut T, payload_length: usize, ) -> Result<Self, DoIpError>
Reads from the reader
payload_length bytes and decodes the message.impl Eq for VehicleIdentificationResponse
impl StructuralPartialEq for VehicleIdentificationResponse
Auto Trait Implementations§
impl Freeze for VehicleIdentificationResponse
impl RefUnwindSafe for VehicleIdentificationResponse
impl Send for VehicleIdentificationResponse
impl Sync for VehicleIdentificationResponse
impl Unpin for VehicleIdentificationResponse
impl UnwindSafe for VehicleIdentificationResponse
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