Struct yubihsm::connector::usb::UsbConnector[][src]

pub struct UsbConnector(_);

Connect to the HSM via USB.

UsbConnector is available when the usb cargo feature is enabled. It requires libusb as a dependency, but does not otherwise need the Yubico SDK (which is a vicarious dependency of UsbConnector which needs the yubihsm-connector process).

Methods

impl UsbConnector
[src]

Create a new UsbConnector with the given configuration

Trait Implementations

impl Default for UsbConnector
[src]

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

impl Connector for UsbConnector
[src]

Open a connection to yubihsm-connector

Check that the connection to the HSM is healthy

Get the serial number for the current YubiHSM2 (if available)

impl Into<Box<Connector>> for UsbConnector
[src]

Important traits for Box<R>

Performs the conversion.

Auto Trait Implementations