#[non_exhaustive]pub enum CaptchaConfigError {
InsufficientCharset,
InvalidNoiseLevel,
ExpiryOutOfRange,
NonPositiveExpiry,
BypassUnavailable,
VerificationKeyGeneration,
}Expand description
Invalid CAPTCHA policy configuration.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InsufficientCharset
The configured character set cannot produce meaningful challenges.
InvalidNoiseLevel
Noise must be a finite value in the closed unit interval.
ExpiryOutOfRange
The configured expiry cannot be represented by the time library.
NonPositiveExpiry
Challenges must remain valid for a positive duration.
The development bypass cannot be enabled in an optimized build.
VerificationKeyGeneration
The operating system could not provide challenge-signing key material.
Trait Implementations§
Source§impl Clone for CaptchaConfigError
impl Clone for CaptchaConfigError
impl Copy for CaptchaConfigError
Source§impl Debug for CaptchaConfigError
impl Debug for CaptchaConfigError
Source§impl Display for CaptchaConfigError
impl Display for CaptchaConfigError
impl Eq for CaptchaConfigError
Source§impl Error for CaptchaConfigError
impl Error for CaptchaConfigError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for CaptchaConfigError
impl PartialEq for CaptchaConfigError
impl StructuralPartialEq for CaptchaConfigError
Auto Trait Implementations§
impl Freeze for CaptchaConfigError
impl RefUnwindSafe for CaptchaConfigError
impl Send for CaptchaConfigError
impl Sync for CaptchaConfigError
impl Unpin for CaptchaConfigError
impl UnsafeUnpin for CaptchaConfigError
impl UnwindSafe for CaptchaConfigError
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