[][src]Enum actix_ratelimit::errors::ARError

pub enum ARError {
    NotConnected,
    Disconnected,
    ReadWriteError(String),
    UnknownError(Error),
    IdentificationError,
}

Custom error type. Useful for logging and debugging different kinds of errors. This type can be converted to Actix Error, which defaults to InternalServerError

Variants

NotConnected

Store is not connected

Disconnected

Store is disconnected after initial successful connection

ReadWriteError(String)

Read/Write error on store

UnknownError(Error)

Could be any kind of IO error

IdentificationError

Identifier error

Trait Implementations

impl Debug for ARError[src]

impl Display for ARError[src]

impl Fail for ARError[src]

impl From<ARError> for AWError[src]

Auto Trait Implementations

impl !RefUnwindSafe for ARError

impl Send for ARError

impl Sync for ARError

impl Unpin for ARError

impl !UnwindSafe for ARError

Blanket Implementations

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

impl<T> AsFail for T where
    T: Fail
[src]

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

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

impl<E> Fail for E where
    E: 'static + Error + Send + Sync
[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>,