Enum twitch_oauth2::tokens::errors::ValidationError [−][src]
pub enum ValidationError<RE: Error + Send + Sync + 'static> { DeserializeError(Error), NotAuthorized, TwitchError(TwitchTokenErrorResponse), Request(RE), NoLogin, }
Expand description
Errors for validate_token
Variants
DeserializeError(Error)
deserializations failed
token is not authorized for use
TwitchError(TwitchTokenErrorResponse)
twitch returned an unexpected status: {0}
failed to request validation: {0}
validation did not return a login when it was expected
Trait Implementations
Performs the conversion.
impl<RE: Error + Send + Sync + 'static> From<ValidationError<RE>> for UserTokenExchangeError<RE>
impl<RE: Error + Send + Sync + 'static> From<ValidationError<RE>> for UserTokenExchangeError<RE>
Performs the conversion.
impl<RE: Error + Send + Sync + 'static> From<ValidationError<RE>> for ImplicitUserTokenExchangeError<RE>
impl<RE: Error + Send + Sync + 'static> From<ValidationError<RE>> for ImplicitUserTokenExchangeError<RE>
Performs the conversion.
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
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more