pub struct RecoveryCodes { /* private fields */ }Expand description
Recovery codes for 2FA backup.
Implementations§
Source§impl RecoveryCodes
impl RecoveryCodes
Sourcepub fn original_count(&self) -> usize
pub fn original_count(&self) -> usize
Get original code count (how many were initially generated).
Sourcepub fn used_count(&self) -> usize
pub fn used_count(&self) -> usize
Get used code count (original - remaining).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RecoveryCodes
impl RefUnwindSafe for RecoveryCodes
impl Send for RecoveryCodes
impl Sync for RecoveryCodes
impl Unpin for RecoveryCodes
impl UnsafeUnpin for RecoveryCodes
impl UnwindSafe for RecoveryCodes
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