pub struct Hotp<'a> { /* private fields */ }Expand description
Configuration for HMAC-based One-Time Password (HOTP).
Implementations§
Source§impl<'a> Hotp<'a>
impl<'a> Hotp<'a>
Sourcepub fn new<'s: 'a>(
secret: &'s impl AsRef<[u8]>,
algorithm: Algorithm,
digits: u8,
) -> Result<Self, Error>
pub fn new<'s: 'a>( secret: &'s impl AsRef<[u8]>, algorithm: Algorithm, digits: u8, ) -> Result<Self, Error>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Hotp<'a>
impl<'a> RefUnwindSafe for Hotp<'a>
impl<'a> Send for Hotp<'a>
impl<'a> Sync for Hotp<'a>
impl<'a> Unpin for Hotp<'a>
impl<'a> UnsafeUnpin for Hotp<'a>
impl<'a> UnwindSafe for Hotp<'a>
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