pub enum Error<C, B> {
Client(C),
Body(B),
Http(Error),
Json(Error),
Urlencode(Error),
Utf8(Utf8Error),
Api(ApiError),
UnexpectedContentType(UnexpectedContentTypeError),
}
Variants§
Client(C)
Body(B)
Http(Error)
Json(Error)
Urlencode(Error)
Utf8(Utf8Error)
Api(ApiError)
UnexpectedContentType(UnexpectedContentTypeError)
Implementations§
Trait Implementations§
Source§impl<C, B> Error for Error<C, B>
impl<C, B> Error for Error<C, B>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<C, B> From<UnexpectedContentTypeError> for Error<C, B>
impl<C, B> From<UnexpectedContentTypeError> for Error<C, B>
Source§fn from(source: UnexpectedContentTypeError) -> Self
fn from(source: UnexpectedContentTypeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<C, B> Freeze for Error<C, B>
impl<C, B> !RefUnwindSafe for Error<C, B>
impl<C, B> Send for Error<C, B>
impl<C, B> Sync for Error<C, B>
impl<C, B> Unpin for Error<C, B>
impl<C, B> !UnwindSafe for Error<C, B>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more