#[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: u8value in range [0-1] to send HOTP code from slot ‘numlock’ after double pressing numlock or outside the range to disable this function
capslock: u8similar to numlock but with capslock
scrolllock: u8similar to numlock but with scrolllock
enable_user_password: boolTrue to enable OTP PIN protection (require PIN each OTP code request)
disable_user_password: boolUnused.
Trait Implementations§
impl Copy for NK_config
Auto Trait Implementations§
impl Freeze for NK_config
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more