#[non_exhaustive]pub enum ImplicitUserTokenExchangeError<RE: Error + Send + Sync + 'static> {
TwitchError {
error: Option<String>,
description: Option<String>,
},
StateMismatch,
ValidationError(ValidationError<RE>),
}
Available on crate feature
client
only.Expand description
Errors for ImplicitUserTokenBuilder::get_user_token
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TwitchError
twitch returned an error: {error:?} - {description:?}
StateMismatch
state CSRF does not match
ValidationError(ValidationError<RE>)
could not get validation for token
Trait Implementations§
Source§impl<RE: Error + Send + Sync + 'static> Error for ImplicitUserTokenExchangeError<RE>
impl<RE: Error + Send + Sync + 'static> Error for ImplicitUserTokenExchangeError<RE>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<RE: Error + Send + Sync + 'static> From<ValidationError<RE>> for ImplicitUserTokenExchangeError<RE>
impl<RE: Error + Send + Sync + 'static> From<ValidationError<RE>> for ImplicitUserTokenExchangeError<RE>
Source§fn from(source: ValidationError<RE>) -> Self
fn from(source: ValidationError<RE>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<RE> Freeze for ImplicitUserTokenExchangeError<RE>where
RE: Freeze,
impl<RE> !RefUnwindSafe for ImplicitUserTokenExchangeError<RE>
impl<RE> Send for ImplicitUserTokenExchangeError<RE>
impl<RE> Sync for ImplicitUserTokenExchangeError<RE>
impl<RE> Unpin for ImplicitUserTokenExchangeError<RE>where
RE: Unpin,
impl<RE> !UnwindSafe for ImplicitUserTokenExchangeError<RE>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more