Struct yubihsm::UsbDevices[][src]

pub struct UsbDevices(_);

A collection of detected YubiHSM 2 devices, represented as HsmDevice

Methods

impl UsbDevices
[src]

Return the serial numbers of all connected YubiHSM2s

Open a YubiHSM2, either selecting one with a particular serial number or opening the only available one if Nonethere is only one connected

Detect connected YubiHSM 2s, returning a collection of them

Number of detected devices

Did we fail to find any YubiHSM2 devices?

Important traits for &'a [u8]

Borrow the detected devices as a slice

Important traits for Iter<'a, T>

Iterate over the detected YubiHSM 2s

Trait Implementations

impl IntoIterator for UsbDevices
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Auto Trait Implementations

impl Send for UsbDevices

impl Sync for UsbDevices