Struct lugnut::Totp [−][src]
pub struct Totp { /* fields omitted */ }
Implementations
impl Totp
[src]
impl Totp
[src]pub fn with_epoch_time_offset<'a>(&'a mut self, offset: u64) -> &'a mut Totp
[src]
pub fn with_epoch_time_offset<'a>(&'a mut self, offset: u64) -> &'a mut Totp
[src]pub fn with_window<'a>(&'a mut self, window: u64) -> &'a mut Totp
[src]
pub fn with_window<'a>(&'a mut self, window: u64) -> &'a mut Totp
[src]Set the window that will be checked when verifying the OTP. The window is two-sided, so if the window is set to 5, and the OTP is counter is 15, 10-20 will be asserted against while verifying.
Defaults to 0.
Arguments
window
- The window margin for the OTP verification.
Examples
use lugnut::totp::Totp; let mut totp_builder = Totp::new(); totp_builder.with_window(5);
pub fn with_digest<'a>(&'a mut self, digest: Vec<u8>) -> &'a mut Totp
[src]
pub fn with_digest<'a>(&'a mut self, digest: Vec<u8>) -> &'a mut Totp
[src]Auto Trait Implementations
impl RefUnwindSafe for Totp
impl Send for Totp
impl Sync for Totp
impl Unpin for Totp
impl UnwindSafe for Totp
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,