diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-12-28 23:53:24 +0100 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2020-01-07 11:33:21 +0100 |
commit | bcad061ed3e7777547c1b6fc9223dd65f752d94e (patch) | |
tree | c2e621cfc3e1970e693f5b53e5c876fe81e86351 /src/lib.rs | |
parent | 6b439950c3c856f1b0eb6df2c9e89387b1697608 (diff) | |
download | nitrokey-rs-bcad061ed3e7777547c1b6fc9223dd65f752d94e.tar.gz nitrokey-rs-bcad061ed3e7777547c1b6fc9223dd65f752d94e.tar.bz2 |
Add the DeviceInfo struct
In the next patch, we will add support for the NK_list_devices functions
that returns a list of NK_device_info structs with information about the
connected devices. This patch introduces the DeviceInfo struct that
holds the information returned by NK_list_devices and that can be
created from a NK_device_info struct.
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -118,8 +118,8 @@ use nitrokey_sys; pub use crate::auth::{Admin, Authenticate, User}; pub use crate::config::Config; pub use crate::device::{ - Device, DeviceWrapper, Model, Pro, SdCardData, Storage, StorageProductionInfo, StorageStatus, - VolumeMode, VolumeStatus, + Device, DeviceInfo, DeviceWrapper, Model, Pro, SdCardData, Storage, StorageProductionInfo, + StorageStatus, VolumeMode, VolumeStatus, }; pub use crate::error::{CommandError, CommunicationError, Error, LibraryError}; pub use crate::otp::{ConfigureOtp, GenerateOtp, OtpMode, OtpSlotData}; |