pub enum RequestError {
Backend(BackendError),
Rpc(ErrorObject<'static>),
Deserialize(Error),
ConnectionClosed,
}Expand description
An error handed back from Client::request().
Variants§
Trait Implementations§
source§impl Debug for RequestError
impl Debug for RequestError
source§impl Display for RequestError
impl Display for RequestError
source§impl Error for RequestError
impl Error for RequestError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Arc<dyn Error + Send + Sync, Global>> for RequestError
impl From<Arc<dyn Error + Send + Sync, Global>> for RequestError
source§fn from(original: BackendError) -> RequestError
fn from(original: BackendError) -> RequestError
Converts to this type from the input type.
source§impl From<Error> for RequestError
impl From<Error> for RequestError
source§fn from(original: Error) -> RequestError
fn from(original: Error) -> RequestError
Converts to this type from the input type.
source§impl From<ErrorObject<'static>> for RequestError
impl From<ErrorObject<'static>> for RequestError
source§fn from(original: ErrorObject<'static>) -> RequestError
fn from(original: ErrorObject<'static>) -> RequestError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RequestError
impl Send for RequestError
impl Sync for RequestError
impl Unpin for RequestError
impl !UnwindSafe for RequestError
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