Enum oauth2::error::OAuthError [] [src]

pub enum OAuthError<E: UserError> {
    Utf8Error(Utf8Error),
    FromUtf8Error(FromUtf8Error),
    Url(ParseError),
    Io(IoError),
    AuthzBadRequest,
    AuthzMissingClientId,
    AuthzUnknownClient,
    AuthzRedirectUrlNotRegistered,
    AuthzGrantTypeMissing,
    AuthzClientIdMismatch,
    ClientCodeMissing,
    ClientStateMissing,
    ClientNonceMismatch,
    UnexpectedStatusCode,
    UserError(E),
}

These are errors returned to the caller

Variants

Utf8Error
FromUtf8Error
Url
Io
AuthzBadRequest
AuthzMissingClientId
AuthzUnknownClient
AuthzRedirectUrlNotRegistered
AuthzGrantTypeMissing
AuthzClientIdMismatch
ClientCodeMissing
ClientStateMissing
ClientNonceMismatch
UnexpectedStatusCode
UserError

Trait Implementations

impl<E: UserError> Display for OAuthError<E>
[src]

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

impl<E: UserError> StdError for OAuthError<E>
[src]

fn description(&self) -> &str

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

impl<E: UserError> From<Utf8Error> for OAuthError<E>
[src]

fn from(e: Utf8Error) -> OAuthError<E>

impl<E: UserError> From<FromUtf8Error> for OAuthError<E>
[src]

fn from(e: FromUtf8Error) -> OAuthError<E>

impl<E: UserError> From<ParseError> for OAuthError<E>
[src]

fn from(e: ParseError) -> OAuthError<E>

impl<E: UserError> From<IoError> for OAuthError<E>
[src]

fn from(e: IoError) -> OAuthError<E>

impl<E: UserError> From<E> for OAuthError<E>
[src]

fn from(e: E) -> OAuthError<E>

Derived Implementations

impl<E: Debug + UserError> Debug for OAuthError<E>
[src]

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