Enum twitch_oauth2::tokens::errors::ValidationError[][src]

pub enum ValidationError<RE: Error + Send + Sync + 'static> {
    DeserializeError(Error),
    NotAuthorized,
    TwitchError(TwitchTokenErrorResponse),
    Request(RE),
}

Errors for validate_token

Variants

DeserializeError(Error)

deserializations failed

NotAuthorized

token is not authorized for use

twitch returned an unexpected status: {0}

Request(RE)

failed to request validation: {0}

Trait Implementations

impl<RE: Debug + Error + Send + Sync + 'static> Debug for ValidationError<RE>[src]

impl<RE: Error + Send + Sync + 'static> Display for ValidationError<RE>[src]

impl<RE: Error + Send + Sync + 'static> Error for ValidationError<RE>[src]

impl<RE: Error + Send + Sync + 'static> From<Error> for ValidationError<RE>[src]

impl<RE: Error + Send + Sync + 'static> From<ValidationError<RE>> for TokenError<RE>[src]

impl<RE: Error + Send + Sync + 'static> From<ValidationError<RE>> for UserTokenExchangeError<RE>[src]

Auto Trait Implementations

impl<RE> !RefUnwindSafe for ValidationError<RE>

impl<RE> Send for ValidationError<RE>

impl<RE> Sync for ValidationError<RE>

impl<RE> Unpin for ValidationError<RE> where
    RE: Unpin

impl<RE> !UnwindSafe for ValidationError<RE>

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

impl<T> WithSubscriber for T[src]