pub enum RequestError<E> {
Internal(String),
Json(E),
}
Expand description
Enum representing different types of request errors.
The Internal
variant represents internal errors with an associated string message.
The Json
variant represents errors related to JSON deserialization with an associated error value.
Variants§
Internal(String)
Internal error variant with an associated string message.
Json(E)
JSON error variant with an associated error value.
Auto Trait Implementations§
impl<E> RefUnwindSafe for RequestError<E>where E: RefUnwindSafe,
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>where E: UnwindSafe,
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