pub struct ReadDeviceIdPduFields {
pub mei_type_byte: u8,
pub read_device_id_code_byte: u8,
pub conformity_level_byte: u8,
pub more_follows: bool,
pub next_object_id_byte: u8,
pub number_of_objects: u8,
pub objects_data: [u8; 252],
pub payload_len: usize,
}Expand description
Parsed FC2B / MEI 0x0E (Read Device Identification) response header fields.
All values are stored as raw bytes. Callers are responsible for converting to
domain types (e.g., ReadDeviceIdCode, ConformityLevel, ObjectId) using TryFrom.
Fields§
§mei_type_byte: u8Raw MEI type byte at data offset 0. Expected: 0x0E.
read_device_id_code_byte: u8Raw read device ID code byte at data offset 1.
conformity_level_byte: u8Raw conformity level byte at data offset 2.
more_follows: boolMore-follows flag derived from data offset 3 (true when byte == 0xFF).
next_object_id_byte: u8Raw next object ID byte at data offset 4.
number_of_objects: u8Number of objects at data offset 5.
objects_data: [u8; 252]Raw objects data payload (data[6..]), zero-padded to MAX_PDU_DATA_LEN.
payload_len: usizeNumber of valid bytes written into objects_data.
Trait Implementations§
Source§impl Clone for ReadDeviceIdPduFields
impl Clone for ReadDeviceIdPduFields
Source§fn clone(&self) -> ReadDeviceIdPduFields
fn clone(&self) -> ReadDeviceIdPduFields
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 Debug for ReadDeviceIdPduFields
impl Debug for ReadDeviceIdPduFields
Source§impl PartialEq for ReadDeviceIdPduFields
impl PartialEq for ReadDeviceIdPduFields
impl Eq for ReadDeviceIdPduFields
impl StructuralPartialEq for ReadDeviceIdPduFields
Auto Trait Implementations§
impl Freeze for ReadDeviceIdPduFields
impl RefUnwindSafe for ReadDeviceIdPduFields
impl Send for ReadDeviceIdPduFields
impl Sync for ReadDeviceIdPduFields
impl Unpin for ReadDeviceIdPduFields
impl UnsafeUnpin for ReadDeviceIdPduFields
impl UnwindSafe for ReadDeviceIdPduFields
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