pub struct Device<H: HidDevice> { /* private fields */ }
Expand description

A connected Nitrokey 3 device.

Implementations

Creates a new Nitrokey 3 instance from the given ctaphid::Device, assuming that it is a Nitrokey 3 device.

Use list to get a list of all available Nitrokey 3 devices and DeviceInfo::connect to connect to one of them.

Queries the firmware version of the device.

Queries the UUID of the device.

This command requires the firmware version v1.0.1.

Generates random data on the device.

Reboots the device into the given boot mode.

Executes the wink command.

For devices with firmware v1.0.1 or newer, this causes the LED to blink. For older firmware versions, this does nothing.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.