Struct lugnut::Hotp [−][src]
pub struct Hotp { /* fields omitted */ }
Implementations
impl Hotp
[src]
impl Hotp
[src]pub fn new() -> Hotp
[src]
pub fn with_length<'a>(&'a mut self, n: u32) -> &'a mut Hotp
[src]
pub fn with_digest<'a>(&'a mut self, digest: Vec<u8>) -> &'a mut Hotp
[src]
pub fn with_window<'a>(&'a mut self, window: u64) -> &'a mut Hotp
[src]
pub fn generate<'a>(
&'a self,
key: String,
counter: u128
) -> Result<String, GenerationError>
[src]
&'a self,
key: String,
counter: u128
) -> Result<String, GenerationError>
pub fn verify<'a>(
&'a self,
token: String,
key: String,
counter: u128
) -> Result<bool, GenerationError>
[src]
&'a self,
token: String,
key: String,
counter: u128
) -> Result<bool, GenerationError>
Auto Trait Implementations
impl RefUnwindSafe for Hotp
impl Send for Hotp
impl Sync for Hotp
impl Unpin for Hotp
impl UnwindSafe for Hotp
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>,