pub struct DeviceConfig {
pub instance: u32,
pub name: String,
pub vendor_name: String,
pub vendor_id: u16,
pub model_name: String,
pub firmware_revision: String,
pub application_software_version: String,
pub max_apdu_length: u32,
pub segmentation_supported: Segmentation,
pub apdu_timeout: u32,
pub apdu_retries: u32,
}Expand description
Configuration for creating a Device object.
Fields§
§instance: u32Device instance number (0..4194303).
name: StringDevice object name.
vendor_name: StringVendor name string.
vendor_id: u16ASHRAE-assigned vendor identifier.
model_name: StringModel name string.
firmware_revision: StringFirmware revision string.
application_software_version: StringApplication software version string.
max_apdu_length: u32Maximum APDU length accepted (typically 1476 for BIP).
segmentation_supported: SegmentationSegmentation support level.
apdu_timeout: u32APDU timeout in milliseconds.
apdu_retries: u32Number of APDU retries.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeviceConfig
impl RefUnwindSafe for DeviceConfig
impl Send for DeviceConfig
impl Sync for DeviceConfig
impl Unpin for DeviceConfig
impl UnsafeUnpin for DeviceConfig
impl UnwindSafe for DeviceConfig
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