Struct yubihsm::UsbConfig [−][src]
pub struct UsbConfig { pub serial: Option<SerialNumber>, pub timeout_ms: u64, }
Configuration for connecting to the YubiHSM via USB
Fields
serial: Option<SerialNumber>
Serial number of the YubiHSM to connect to
timeout_ms: u64
Timeout for USB operations (default 1s)
Trait Implementations
impl Clone for UsbConfig
[src]
impl Clone for UsbConfig
fn clone(&self) -> UsbConfig
[src]
fn clone(&self) -> UsbConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for UsbConfig
[src]
impl Debug for UsbConfig
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for UsbConfig
[src]
impl Default for UsbConfig