[][src]Enum actix_storage::StorageError

pub enum StorageError {
    MethodNotSupported,
    SerializationError,
    DeserializationError,
    Custom(Box<dyn Error + Send>),
}

Error type that will be returned from all fallible methods of actix_storage.

Implementors should generally use Custom variant for their own errors.

Variants

MethodNotSupported

Occurs when expiry methods are not available or the implementor doesn't support the method.

SerializationError

Occurs when serialization is not possible, either because of wrong format specified or wrong type.

DeserializationError

Occurs when deserialization is not possible, either because of wrong format specified or wrong type.

Custom(Box<dyn Error + Send>)

Occurs when the underlying storage implementor faces error

Implementations

impl StorageError[src]

pub fn custom<E>(err: E) -> Self where
    E: 'static + Error + Send
[src]

Shortcut method to construct Custom variant

Trait Implementations

impl Debug for StorageError[src]

impl Display for StorageError[src]

impl Error for StorageError[src]

impl ResponseError for StorageError[src]

Auto Trait Implementations

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> Instrument for T[src]

impl<T> Instrument 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> 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>,