pub enum MagicCodeError {
NotFound,
TooManyAttempts,
BadCode,
Expired,
Throttled {
retry_after_secs: u64,
},
}Variants§
NotFound
There is no active code for this email, or it expired.
TooManyAttempts
The code is present but MAX_ATTEMPTS failed verifies have occurred.
BadCode
The code did not match.
Expired
The code expired since it was created.
Throttled
Another code was requested too recently. Wait and try again.
Trait Implementations§
Source§impl Clone for MagicCodeError
impl Clone for MagicCodeError
Source§fn clone(&self) -> MagicCodeError
fn clone(&self) -> MagicCodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MagicCodeError
impl Debug for MagicCodeError
Source§impl PartialEq for MagicCodeError
impl PartialEq for MagicCodeError
Source§fn eq(&self, other: &MagicCodeError) -> bool
fn eq(&self, other: &MagicCodeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MagicCodeError
impl StructuralPartialEq for MagicCodeError
Auto Trait Implementations§
impl Freeze for MagicCodeError
impl RefUnwindSafe for MagicCodeError
impl Send for MagicCodeError
impl Sync for MagicCodeError
impl Unpin for MagicCodeError
impl UnsafeUnpin for MagicCodeError
impl UnwindSafe for MagicCodeError
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