Enum cache::errors::CacheError[][src]

pub enum CacheError {
    Msg(String),
    RedisError(RedisError),
    CaptchaNotFound,
    ChallengeNotFound,
    DuplicateChallenge,
}

Variants

Msg(String)
RedisError(RedisError)
CaptchaNotFound
ChallengeNotFound
DuplicateChallenge

Implementations

impl CacheError[src]

pub fn new(msg: String) -> Self[src]

Trait Implementations

impl Debug for CacheError[src]

impl Display for CacheError[src]

impl From<&'_ str> for CacheError[src]

impl From<CacheError> for RedisResult[src]

impl From<CacheError> for RedisError[src]

impl From<CaptchaError> for CacheError[src]

impl From<Error> for CacheError[src]

impl From<ParseIntError> for CacheError[src]

impl From<RedisError> for CacheError[src]

impl From<String> for CacheError[src]

Auto Trait Implementations

impl RefUnwindSafe for CacheError

impl Send for CacheError

impl Sync for CacheError

impl Unpin for CacheError

impl UnwindSafe for CacheError

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> 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>,