Enum inth_oauth2::ClientError
source · pub enum ClientError {
Io(Error),
Url(ParseError),
Reqwest(Error),
Json(Error),
Parse(ParseError),
OAuth2(OAuth2Error),
}
Expand description
Errors that can occur during authorization.
Variants
Io(Error)
IO error.
Url(ParseError)
URL error.
Reqwest(Error)
Reqwest error.
Json(Error)
JSON error.
Parse(ParseError)
Response parse error.
OAuth2(OAuth2Error)
OAuth 2.0 error.
Trait Implementations
sourceimpl Debug for ClientError
impl Debug for ClientError
sourceimpl Display for ClientError
impl Display for ClientError
sourceimpl Error for ClientError
impl Error for ClientError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
sourceimpl From<Error> for ClientError
impl From<Error> for ClientError
sourceimpl From<Error> for ClientError
impl From<Error> for ClientError
sourceimpl From<Error> for ClientError
impl From<Error> for ClientError
sourceimpl From<OAuth2Error> for ClientError
impl From<OAuth2Error> for ClientError
sourcefn from(err: OAuth2Error) -> Self
fn from(err: OAuth2Error) -> Self
Converts to this type from the input type.
sourceimpl From<ParseError> for ClientError
impl From<ParseError> for ClientError
sourcefn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseError> for ClientError
impl From<ParseError> for ClientError
sourcefn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl !UnwindSafe for ClientError
Blanket Implementations
impl<T> AsFail for Twhere
T: Fail,
impl<T> AsFail for Twhere
T: Fail,
fn as_fail(&self) -> &(dyn Fail + 'static)
fn as_fail(&self) -> &(dyn Fail + 'static)
Converts a reference to
Self
into a dynamic trait object of Fail
.sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<E> Fail for Ewhere
E: 'static + Error + Send + Sync,
impl<E> Fail for Ewhere
E: 'static + Error + Send + Sync,
fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
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