Enum actix_plus_auth::LoginOutcome[][src]

pub enum LoginOutcome<AccountType> {
    Successful(AccountType, Cookie<'static>),
    InvalidEmailOrPassword,
}

The non-error outcomes of logging in. Error outcomes are used when a genuine error takes place — e.g. the database is not reachable (represented by the functions on your DataProvider implementation returning an error).

Variants

Successful(AccountType, Cookie<'static>)

The credentials were correct, so the account and a cookie that should be set in the response to the login route are provided.

InvalidEmailOrPassword

Auto Trait Implementations

impl<AccountType> RefUnwindSafe for LoginOutcome<AccountType> where
    AccountType: RefUnwindSafe

impl<AccountType> Send for LoginOutcome<AccountType> where
    AccountType: Send

impl<AccountType> Sync for LoginOutcome<AccountType> where
    AccountType: Sync

impl<AccountType> Unpin for LoginOutcome<AccountType> where
    AccountType: Unpin

impl<AccountType> UnwindSafe for LoginOutcome<AccountType> where
    AccountType: UnwindSafe

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