Struct nitrokey_sys::NK_config
source · [−]#[repr(C)]pub struct NK_config {
pub numlock: u8,
pub capslock: u8,
pub scrolllock: u8,
pub enable_user_password: bool,
pub disable_user_password: bool,
}
Expand description
The general configuration of a Nitrokey device.
Fields
numlock: u8
value in range [0-1] to send HOTP code from slot ‘numlock’ after double pressing numlock or outside the range to disable this function
capslock: u8
similar to numlock but with capslock
scrolllock: u8
similar to numlock but with scrolllock
enable_user_password: bool
True to enable OTP PIN protection (require PIN each OTP code request)
disable_user_password: bool
Unused.
Trait Implementations
impl Copy for NK_config
Auto Trait Implementations
impl RefUnwindSafe for NK_config
impl Send for NK_config
impl Sync for NK_config
impl Unpin for NK_config
impl UnwindSafe for NK_config
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more