Struct yubihsm::UsbAdapter[][src]

pub struct UsbAdapter {
    pub bus_number: u8,
    pub device_address: u8,
    pub serial_number: SerialNumber,
    pub timeout: UsbTimeout,
    // some fields omitted
}

libusb-based adapter which communicates directly with the YubiHSM2

Fields

USB bus number for this device

USB device address for this device

Serial number of the device

Timeout for reading from / writing to the YubiHSM2

Trait Implementations

impl Adapter for UsbAdapter
[src]

Configuration options for this adapter

Connect to a YubiHSM2 using the given configuration

Check that we still have an active USB connection

Send a command to the YubiHSM and read its response

impl Debug for UsbAdapter
[src]

Formats the value using the given formatter. Read more

impl Default for UsbAdapter
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for UsbAdapter

impl Sync for UsbAdapter