Struct ctaphid::Device[][src]

pub struct Device { /* fields omitted */ }
Expand description

A connected CTAPHID device.

Implementations

Connects to a HID device, assuming that it is a CTAPHID device.

Generally, it is recommended to use list instead to list all available CTAPHID devices and then connect to one of them using Devices::connect.

Pings the device sending the given data and checks that it sends the same data back.

If the data returned by the device does not match the sent data, CommandError::InvalidPingData is returned.

Executes the wink command, causing a vendor-defined action that provides some visual or audible identification of a particular authenticator.

Executes the given vendor-specific command with the given data.

Methods from Deref<Target = DeviceInfo>

Returns the vendor ID of this device.

Returns the product ID of this device.

Trait Implementations

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

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

Performs the conversion.

Performs the conversion.

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.