pub enum PhoneCodeError {
NotFound,
Expired,
BadCode,
TooManyAttempts,
Throttled {
retry_after_secs: u64,
},
InvalidPhone,
}Variants§
Trait Implementations§
Source§impl Clone for PhoneCodeError
impl Clone for PhoneCodeError
Source§fn clone(&self) -> PhoneCodeError
fn clone(&self) -> PhoneCodeError
Returns a duplicate of the value. Read more
1.0.0 · 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 PhoneCodeError
impl Debug for PhoneCodeError
Source§impl Display for PhoneCodeError
impl Display for PhoneCodeError
Source§impl PartialEq for PhoneCodeError
impl PartialEq for PhoneCodeError
impl Eq for PhoneCodeError
impl StructuralPartialEq for PhoneCodeError
Auto Trait Implementations§
impl Freeze for PhoneCodeError
impl RefUnwindSafe for PhoneCodeError
impl Send for PhoneCodeError
impl Sync for PhoneCodeError
impl Unpin for PhoneCodeError
impl UnsafeUnpin for PhoneCodeError
impl UnwindSafe for PhoneCodeError
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