pub struct OtpCapture(/* private fields */);Expand description
Per-instance OTP capture. Clearing the sink does not delete verification records.
Implementations§
Source§impl OtpCapture
impl OtpCapture
Sourcepub fn get(&self, identifier: &str) -> AuthResult<Option<String>>
pub fn get(&self, identifier: &str) -> AuthResult<Option<String>>
Read the last captured OTP for an identifier after prefix normalization.
Sourcepub fn clear(&self) -> AuthResult<()>
pub fn clear(&self) -> AuthResult<()>
Clear captured OTPs without changing persisted verification records.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for OtpCapture
impl RefUnwindSafe for OtpCapture
impl Send for OtpCapture
impl Sync for OtpCapture
impl Unpin for OtpCapture
impl UnsafeUnpin for OtpCapture
impl UnwindSafe for OtpCapture
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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