Enum lite_session::TokenOutcome[][src]

pub enum TokenOutcome {
    TokenAuthentic,
    TokenAuthorized,
    TokenRejected,
    TokenRevoked,
    BadToken,
    SessionExpired,
}

Shows the outcome of verifying the validity of a token

Variants

TokenAuthentic

The token has been proved to be authentic

TokenAuthorized

The token has been authorized for provided capabilities

TokenRejected

The token is not authentic and has been rejected

TokenRevoked

The token has been revoked by the server

BadToken

The token is invalid in its structure or length

SessionExpired

The session held by the provided token has expired

Trait Implementations

impl Debug for TokenOutcome[src]

impl PartialEq<TokenOutcome> for TokenOutcome[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.