Crate nitrokey3

Crate nitrokey3 

Source
Expand description

Client library for Nitrokey 3 devices.

§Quickstart

let hidapi = hidapi::HidApi::new()?;
let devices = nitrokey3::list(&hidapi);
println!("Found {} Nitrokey 3 devices", devices.len());
for device in devices {
    let device = device.connect()?;
    println!("- Nitrokey 3 with firmware version {}", device.firmware_version()?);
}

Structs§

Device
A connected Nitrokey 3 device.
DeviceInfo
An available Nitrokey 3 device.
Devices
A collection of available Nitrokey 3 devices.
Uuid
The UUID for a Nitrokey 3 device.
Version
A firmware version number.

Enums§

BootMode
The boot mode for a reboot command.
CommandError
A command-specific error.
Error
Error type for Nitrokey 3 operations.

Functions§

list
Lists all available Nitrokey 3 devices.