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
Error response returned by authorization server. Contains the parsed ErrorResponse
returned by the server.
An error occurred while sending the request or receiving the response (e.g., network connectivity failed).
Failed to parse server response. Parse errors may occur while parsing either successful or error responses.
Other(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,
impl<RE, T> Error for RequestTokenError<RE, T> where
RE: Error + 'static,
T: ErrorResponse + 'static,
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>