pub enum DefaultClientError {
Utf8(Utf8Error),
IO(Error),
Request(RequestError),
}
Available on crate feature
default_client
only.Expand description
Errors from the HTTP client encountered in the course of making a request.
Variants§
Utf8(Utf8Error)
The HTTP client encountered invalid UTF-8 data.
IO(Error)
The HTTP client encountered some I/O error.
Request(RequestError)
Some other error from the HTTP client implementation.
Trait Implementations§
Source§impl Debug for DefaultClientError
impl Debug for DefaultClientError
Source§impl Display for DefaultClientError
impl Display for DefaultClientError
Source§impl Error for DefaultClientError
impl Error for DefaultClientError
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 From<Error> for DefaultClientError
impl From<Error> for DefaultClientError
Source§impl From<RequestError> for DefaultClientError
impl From<RequestError> for DefaultClientError
Source§fn from(source: RequestError) -> Self
fn from(source: RequestError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DefaultClientError
impl !RefUnwindSafe for DefaultClientError
impl Send for DefaultClientError
impl Sync for DefaultClientError
impl Unpin for DefaultClientError
impl !UnwindSafe for DefaultClientError
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