Struct nitrokey_sys::NK_status
source · [−]#[repr(C)]pub struct NK_status {
pub firmware_version_major: u8,
pub firmware_version_minor: u8,
pub serial_number_smart_card: u32,
pub config_numlock: u8,
pub config_capslock: u8,
pub config_scrolllock: u8,
pub otp_user_password: bool,
}
Expand description
Stores the common device status for all Nitrokey devices.
Fields
firmware_version_major: u8
The major firmware version, e. g. 0 in v0.40.
firmware_version_minor: u8
The minor firmware version, e. g. 40 in v0.40.
serial_number_smart_card: u32
The serial number of the smart card.
config_numlock: u8
The HOTP slot to generate a password from if the numlock key is pressed twice (slot 0-1, or any other value to disable the function).
config_capslock: u8
The HOTP slot to generate a password from if the capslock key is pressed twice (slot 0-1, or any other value to disable the function).
config_scrolllock: u8
The HOTP slot to generate a password from if the scrolllock key is pressed twice (slot 0-1, or any other value to disable the function).
otp_user_password: bool
Indicates whether the user password is required to generate an OTP value.
Trait Implementations
impl Copy for NK_status
Auto Trait Implementations
impl RefUnwindSafe for NK_status
impl Send for NK_status
impl Sync for NK_status
impl Unpin for NK_status
impl UnwindSafe for NK_status
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more