pub struct DeviceConfig {
pub identity: DeviceIdentity,
pub vendor_name: String,
pub model_name: String,
pub firmware_revision: String,
pub application_software_version: String,
pub apdu_timeout: u32,
pub apdu_retries: u32,
pub backup_and_restore: bool,
pub backup_failure_timeout: u16,
}Expand description
Configuration for creating a Device object.
Fields§
§identity: DeviceIdentityOne source for Device identity and runtime declarations.
vendor_name: StringVendor name string.
model_name: StringModel name string.
firmware_revision: StringFirmware revision string.
application_software_version: StringApplication software version string.
apdu_timeout: u32APDU timeout in milliseconds.
apdu_retries: u32Number of APDU retries.
backup_and_restore: boolWhether the device performs the backup and restore procedures (Clause 19.1), which adds Configuration_Files, Last_Restore_Time, Backup_Failure_Timeout and Backup_And_Restore_State. The application carries out the procedures themselves.
backup_failure_timeout: u16Initial Backup_Failure_Timeout in seconds. Only served with backup_and_restore.
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