[][src]Enum m_captcha::errors::CaptchaError

pub enum CaptchaError {
    LevelEmpty,
    DifficultyFactorZero,
    SetDifficultyFactor,
    SetVisitorThreshold,
    DuplicateVisitorCount,
    DecreaseingDifficultyFactor,
    MailboxError,
    InsuffiencientDifficulty,
    StringNotFound,
}

Error datatype

Variants

LevelEmpty

When configuring m_captcha, DefenseBuilder must be passed atleast one LevelConfig if not this error will arise

DifficultyFactorZero

Visitor count must be a whole number(zero and above). When configuring m_captcha, LevelBuilder. difficulty_factor must be set to greater than zero.

SetDifficultyFactor

Difficulty factor must be set

SetVisitorThreshold

Visitor threshold must be set

DuplicateVisitorCount

Visitor count must be Unique

DecreaseingDifficultyFactor

Difficulty factor should increase with level

MailboxError

Difficulty factor should increase with level

InsuffiencientDifficulty

Happens when submitted work doesn't satisfy the required difficulty factor

StringNotFound

Happens when submitted work is computed over string that isn't in cache

Trait Implementations

impl Clone for CaptchaError[src]

impl Debug for CaptchaError[src]

impl Display for CaptchaError[src]

impl Error for CaptchaError[src]

impl PartialEq<CaptchaError> for CaptchaError[src]

impl StructuralPartialEq for CaptchaError[src]

Auto Trait Implementations

impl RefUnwindSafe for CaptchaError[src]

impl Send for CaptchaError[src]

impl Sync for CaptchaError[src]

impl Unpin for CaptchaError[src]

impl UnwindSafe for CaptchaError[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,