Struct ethers::signers::yubihsm::connector::usb::Devices [−][src]
pub struct Devices(_);
Expand description
A collection of detected YubiHSM 2 devices, represented as Device
Implementations
Return the serial numbers of all connected YubiHSM 2s
pub fn open(
serial_number: Option<Number>,
timeout: UsbTimeout
) -> Result<UsbConnection, Error<ErrorKind>>
pub fn open(
serial_number: Option<Number>,
timeout: UsbTimeout
) -> Result<UsbConnection, Error<ErrorKind>>
Open a YubiHSM 2, either selecting one with a particular serial number
or opening the only available one if None
there is only one connected
Detect connected YubiHSM 2s, returning a collection of them
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Devices
impl UnwindSafe for Devices
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more