[−][src]Struct nitrokey::User
A Nitrokey device with user authentication.
To obtain an instance of this struct, use the [authenticate_user
][] method from the
Authenticate
trait. To get back to an unauthenticated device, use the device
method.
Methods
impl<T: Device> User<T>
[src]
pub fn device(self) -> T
[src]
Forgets the user authentication and returns an unauthenticated device. This method consumes the authenticated device. It does not perform any actual commands on the Nitrokey.
Trait Implementations
impl<T: Debug + Device> Debug for User<T>
[src]
impl<T: Device> Deref for User<T>
[src]
impl<T: Device> GenerateOtp for User<T>
[src]
fn get_hotp_code(&self, slot: u8) -> Result<String, CommandError>
[src]
fn get_totp_code(&self, slot: u8) -> Result<String, CommandError>
[src]
fn set_time(&self, time: u64, force: bool) -> Result<(), CommandError>
[src]
fn get_hotp_slot_name(&self, slot: u8) -> Result<String, CommandError>
[src]
fn get_totp_slot_name(&self, slot: u8) -> Result<String, CommandError>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for User<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for User<T> where
T: Send,
T: Send,
impl<T> Sync for User<T> where
T: Sync,
T: Sync,
impl<T> Unpin for User<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for User<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,