#[non_exhaustive]pub enum HttpRequestError {
Build {
source: Error,
},
Request {
url: String,
source: Error,
},
Status {
url: String,
status: StatusCode,
source: Error,
},
ReadBody {
url: String,
source: Error,
},
DecodeUtf8 {
url: String,
source: FromUtf8Error,
},
DecodeJson {
url: String,
source: Error,
},
}Expand description
Errors returned when executing and decoding HTTP requests via RequestBuilderExt.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Debug for HttpRequestError
impl Debug for HttpRequestError
Source§impl Display for HttpRequestError
impl Display for HttpRequestError
Source§impl Error for HttpRequestError
impl Error for HttpRequestError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for HttpRequestError
impl !UnwindSafe for HttpRequestError
impl Forget for HttpRequestError
impl Freeze for HttpRequestError
impl Move for HttpRequestError
impl Send for HttpRequestError
impl Sync for HttpRequestError
impl Unpin for HttpRequestError
impl UnsafeUnpin for HttpRequestErrorwhere
*const Inner is !null: UnsafeUnpin,
PhantomData<Inner>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroU16Inner: UnsafeUnpin,
*const ErrorImpl is !null: UnsafeUnpin,
PhantomData<ErrorImpl>: UnsafeUnpin,
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