diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2020-01-14 13:48:56 +0100 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2020-01-14 16:53:45 +0100 |
commit | f266ea63039c87886f871b068ef3dcdf851a1eca (patch) | |
tree | 35780d1b6137768d6f2ec3780b071fa278330e92 /src/device/mod.rs | |
parent | eb04dafce313ff5349b1c93d8d87cb53ba320e7e (diff) | |
download | nitrokey-rs-f266ea63039c87886f871b068ef3dcdf851a1eca.tar.gz nitrokey-rs-f266ea63039c87886f871b068ef3dcdf851a1eca.tar.bz2 |
Add the get_operation_status function to the Storage struct
This patch adds support for the NK_get_progress_bar_value function: It
adds the OperationStatus enum that stores the return value of this
command and adds the get_operation_status function to the Storage struct
that executes the command.
Diffstat (limited to 'src/device/mod.rs')
-rw-r--r-- | src/device/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/device/mod.rs b/src/device/mod.rs index 8b7f1c6..16d6b11 100644 --- a/src/device/mod.rs +++ b/src/device/mod.rs @@ -25,7 +25,8 @@ use crate::util::{ pub use pro::Pro; pub use storage::{ - SdCardData, Storage, StorageProductionInfo, StorageStatus, VolumeMode, VolumeStatus, + OperationStatus, SdCardData, Storage, StorageProductionInfo, StorageStatus, VolumeMode, + VolumeStatus, }; pub use wrapper::DeviceWrapper; |