Enum oauth2::RequestTokenError
source · pub enum RequestTokenError<T: ErrorResponseType> {
ServerResponse(ErrorResponse<T>),
Request(Error),
Parse(Error),
Other(String),
}
Expand description
Error encountered while requesting access token.
Variants§
ServerResponse(ErrorResponse<T>)
Error response returned by authorization server. Contains the parsed ErrorResponse
returned by the server.
Request(Error)
An error occurred while sending the request or receiving the response (e.g., network connectivity failed).
Parse(Error)
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§
source§impl<T: Debug + ErrorResponseType> Debug for RequestTokenError<T>
impl<T: Debug + ErrorResponseType> Debug for RequestTokenError<T>
source§impl<T> Display for RequestTokenError<T>where
T: ErrorResponseType,
impl<T> Display for RequestTokenError<T>where
T: ErrorResponseType,
source§impl<T> Fail for RequestTokenError<T>where
T: ErrorResponseType + Send + Sync + 'static,
impl<T> Fail for RequestTokenError<T>where
T: ErrorResponseType + Send + Sync + 'static,
source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read more