pub struct ReadDeviceIdentificationResponse<'buf> {
pub device_id_code: DeviceIdCode,
pub conformity_level: u8,
pub more_follows: bool,
pub next_object_id: u8,
pub num_objects: u8,
pub object_data: &'buf [u8],
}Expand description
FC 0x2B / MEI 0x0E — Read Device Identification response.
Spec V1.1b3 §6.21. Object data is borrowed from the source buffer.
Use objects to iterate over individual entries.
Fields§
§device_id_code: DeviceIdCodeThe access code that was requested.
conformity_level: u8Conformity level of the device.
more_follows: boolIf true, more objects follow — send another request with next_object_id.
next_object_id: u8Next object ID to request if more_follows is true.
num_objects: u8Number of object entries in this response.
object_data: &'buf [u8]Raw object data bytes (packed: [obj_id, obj_len, value...] repeated).
Implementations§
Source§impl<'buf> ReadDeviceIdentificationResponse<'buf>
impl<'buf> ReadDeviceIdentificationResponse<'buf>
Sourcepub fn decode(data: &'buf [u8]) -> Result<Self, DecodeError>
pub fn decode(data: &'buf [u8]) -> Result<Self, DecodeError>
Decode from the data bytes following the function code.
§Errors
Returns DecodeError if the data is malformed.
Sourcepub fn objects(&self) -> DeviceIdObjectIter<'buf> ⓘ
pub fn objects(&self) -> DeviceIdObjectIter<'buf> ⓘ
Iterate over the identification objects in this response.
Trait Implementations§
Auto Trait Implementations§
impl<'buf> Freeze for ReadDeviceIdentificationResponse<'buf>
impl<'buf> RefUnwindSafe for ReadDeviceIdentificationResponse<'buf>
impl<'buf> Send for ReadDeviceIdentificationResponse<'buf>
impl<'buf> Sync for ReadDeviceIdentificationResponse<'buf>
impl<'buf> Unpin for ReadDeviceIdentificationResponse<'buf>
impl<'buf> UnsafeUnpin for ReadDeviceIdentificationResponse<'buf>
impl<'buf> UnwindSafe for ReadDeviceIdentificationResponse<'buf>
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