pub enum RequestError<E> {
RequestError(Error),
InvalidJsonBody(Error),
ErrorPayload(E),
}
Expand description
Enum representing different types of HTTPS errors.
Variants§
RequestError(Error)
Error that occurs when sending a request.
InvalidJsonBody(Error)
Error indicating invalid JSON body during deserialization.
ErrorPayload(E)
Error payload (json) when request is not successful
Trait Implementations§
Source§impl<E> Display for RequestError<E>where
E: Display,
impl<E> Display for RequestError<E>where
E: Display,
Source§impl<E> Error for RequestError<E>
impl<E> Error for RequestError<E>
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<E> From<Error> for RequestError<E>
impl<E> From<Error> for RequestError<E>
Auto Trait Implementations§
impl<E> Freeze for RequestError<E>where
E: Freeze,
impl<E> !RefUnwindSafe for RequestError<E>
impl<E> Send for RequestError<E>where
E: Send,
impl<E> Sync for RequestError<E>where
E: Sync,
impl<E> Unpin for RequestError<E>where
E: Unpin,
impl<E> !UnwindSafe for RequestError<E>
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