pub enum RpcClientError {
Http(HttpClientError),
Rpc(RpcError),
InvalidData(String),
}Available on crate feature
rpc-client only.Expand description
Error type for RPC client operations.
Variants§
Http(HttpClientError)
An HTTP client error (transport or HTTP error).
Rpc(RpcError)
An RPC error returned by the server.
InvalidData(String)
Invalid data in the response.
Trait Implementations§
Source§impl Debug for RpcClientError
impl Debug for RpcClientError
Source§impl Display for RpcClientError
impl Display for RpcClientError
Source§impl Error for RpcClientError
impl Error for RpcClientError
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<HttpClientError> for RpcClientError
impl From<HttpClientError> for RpcClientError
Source§fn from(e: HttpClientError) -> Self
fn from(e: HttpClientError) -> Self
Converts to this type from the input type.
Source§impl From<RpcClientError> for BlockSourceError
Available on crate features rest-client or rpc-client only.Conversion from RpcClientError into BlockSourceError.
impl From<RpcClientError> for BlockSourceError
Available on crate features
rest-client or rpc-client only.Conversion from RpcClientError into BlockSourceError.
Source§fn from(e: RpcClientError) -> BlockSourceError
fn from(e: RpcClientError) -> BlockSourceError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RpcClientError
impl !UnwindSafe for RpcClientError
impl Freeze for RpcClientError
impl Send for RpcClientError
impl Sync for RpcClientError
impl Unpin for RpcClientError
impl UnsafeUnpin for RpcClientError
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