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 product ID of this device.