Enum websession::backingstore::BackingStoreError[][src]

pub enum BackingStoreError {
    NoSuchUser,
    MissingData,
    Locked,
    UserExists,
    IO(Error),
    Mutex,
    Hash(Error),
    InvalidCredentials,
}

Variants

NoSuchUser

User can't be found

MissingData

Data integrity error (for example, the user exists but the password is missing)

Locked

User exists, account is locked

UserExists

User exists (for example, when trying to create a new user with an existing username)

IO(Error)

Any IO error reading or writing the password database

Mutex

Internal error; the mutex protecting a data structure has been poisoned

Hash(Error)

An error from the underlying pwhash implementation

InvalidCredentials

Credentials expected to be pre-encrypted weren't (for implementations which can tell them apart)

Trait Implementations

impl Debug for BackingStoreError[src]

impl From<BackingStoreError> for AuthError[src]

impl From<Error> for BackingStoreError[src]

impl From<Error> for BackingStoreError[src]

impl PartialEq<BackingStoreError> for BackingStoreError[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, 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, 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>,