Enum oauth2::RequestTokenError [−][src]
pub enum RequestTokenError<RE, T> where
RE: Error + 'static,
T: ErrorResponse + 'static, {
ServerResponse(T),
Request(RE),
Parse(Error<Error>, Vec<u8>),
Other(String),
}
Expand description
Error encountered while requesting access token.
Variants
ServerResponse(T)
Error response returned by authorization server. Contains the parsed ErrorResponse
returned by the server.
Request(RE)
An error occurred while sending the request or receiving the response (e.g., network connectivity failed).
Parse(Error<Error>, Vec<u8>)
Failed to parse server response. Parse errors may occur while parsing either successful or error responses.
Other(String)
Tuple Fields
0: String
Some other type of error occurred (e.g., an unexpected server response).
Trait Implementations
impl<RE: Debug, T: Debug> Debug for RequestTokenError<RE, T> where
RE: Error + 'static,
T: ErrorResponse + 'static,
impl<RE: Debug, T: Debug> Debug for RequestTokenError<RE, T> where
RE: Error + 'static,
T: ErrorResponse + 'static,
impl<RE, T> Display for RequestTokenError<RE, T> where
RE: Error + 'static,
T: ErrorResponse + 'static,
impl<RE, T> Display for RequestTokenError<RE, T> where
RE: Error + 'static,
T: ErrorResponse + 'static,
impl<RE, T> Error for RequestTokenError<RE, T> where
RE: Error + 'static,
T: ErrorResponse + 'static,
RE: Error + 'static,
Self: Debug + Display,
impl<RE, T> Error for RequestTokenError<RE, T> where
RE: Error + 'static,
T: ErrorResponse + 'static,
RE: Error + 'static,
Self: Debug + Display,
Auto Trait Implementations
impl<RE, T> !RefUnwindSafe for RequestTokenError<RE, T>
impl<RE, T> Send for RequestTokenError<RE, T> where
RE: Send,
T: Send,
impl<RE, T> Sync for RequestTokenError<RE, T> where
RE: Sync,
T: Sync,
impl<RE, T> Unpin for RequestTokenError<RE, T> where
RE: Unpin,
T: Unpin,
impl<RE, T> !UnwindSafe for RequestTokenError<RE, T>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
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