Enum oauth2::error::OauthError [] [src]

pub enum OauthError {
    Utf8Error(Utf8Error),
    FromUtf8Error(FromUtf8Error),
    Url(ParseError),
    Io(IoError),
    AuthzBadRequest,
    AuthzMissingClientId,
    AuthzUnknownClient,
    AuthzRedirectUrlNotRegistered,
    AuthzGrantTypeMissing,
    AuthzClientIdMismatch,
    ClientCodeMissing,
    ClientStateMissing,
    ClientNonceMismatch,
    UnexpectedStatusCode,
}

These are errors returned to the caller

Variants

Utf8Error(Utf8Error)FromUtf8Error(FromUtf8Error)Url(ParseError)Io(IoError)AuthzBadRequestAuthzMissingClientIdAuthzUnknownClientAuthzRedirectUrlNotRegisteredAuthzGrantTypeMissingAuthzClientIdMismatchClientCodeMissingClientStateMissingClientNonceMismatchUnexpectedStatusCode

Trait Implementations

impl Debug for OauthError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for OauthError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl StdError for OauthError
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&StdError>

The lower-level cause of this error, if any. Read more

impl From<Utf8Error> for OauthError
[src]

fn from(e: Utf8Error) -> OauthError

Performs the conversion.

impl From<FromUtf8Error> for OauthError
[src]

fn from(e: FromUtf8Error) -> OauthError

Performs the conversion.

impl From<ParseError> for OauthError
[src]

fn from(e: ParseError) -> OauthError

Performs the conversion.

impl From<IoError> for OauthError
[src]

fn from(e: IoError) -> OauthError

Performs the conversion.