aboutsummaryrefslogtreecommitdiff
path: root/src/util.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-02-18 12:07:26 +0000
committerRobin Krahl <robin.krahl@ireas.org>2019-02-18 15:30:52 +0100
commitccbbf657743eb656f4e49b0204092b4450ffa7ba (patch)
treeb0bec9a81a5f03743581ffb08585277dddafc3e3 /src/util.rs
parenta954a23e52a28cda7af669303f5e9404641b3b6c (diff)
downloadntw-ccbbf657743eb656f4e49b0204092b4450ffa7ba.tar.gz
ntw-ccbbf657743eb656f4e49b0204092b4450ffa7ba.tar.bz2
Add HidDevice trait for device-specific information
The HID USB class needs device-specific information – currently, the subclass and the protocol of the device, but also the report descriptors and request handlers once we support these functions. Therefore, this patch introduces the HidDevice trait that provides this data. It also adds a Nitrokey struct that implements this trait for the Nitrokey Pro device.
Diffstat (limited to 'src/util.rs')
0 files changed, 0 insertions, 0 deletions