Struct yubihsm::adapter::usb::HsmDevice [−][src]
pub struct HsmDevice { pub product_name: String, pub serial_number: SerialNumber, // some fields omitted }
A USB device we've identified as a YubiHSM2
Fields
product_name: String
Product vendor and name
serial_number: SerialNumber
Serial number of the YubiHSM2 device
Methods
impl HsmDevice
[src]
impl HsmDevice
pub fn open(self, timeout: UsbTimeout) -> Result<UsbAdapter, AdapterError>
[src]
pub fn open(self, timeout: UsbTimeout) -> Result<UsbAdapter, AdapterError>
Open this device, consuming it and creating a UsbAdapter
pub fn bus_number(&self) -> u8
[src]
pub fn bus_number(&self) -> u8
Get the bus number for this device
pub fn address(&self) -> u8
[src]
pub fn address(&self) -> u8
Get the address for this device