pub enum JsonRpcClientError<T> {
JsonError(Error),
TransportError(T),
JsonRpcError(JsonRpcError),
}Expand description
Errors from JSON-RPC client.
Variants§
JsonError(Error)
JSON serialization/deserialization erors.
TransportError(T)
Transport-specific errors.
JsonRpcError(JsonRpcError)
An unsuccessful response returned from the server is encountered.
Trait Implementations§
Source§impl<T: Debug> Debug for JsonRpcClientError<T>
impl<T: Debug> Debug for JsonRpcClientError<T>
Source§impl<T> Display for JsonRpcClientError<T>where
T: Display,
impl<T> Display for JsonRpcClientError<T>where
T: Display,
Source§impl<T> Error for JsonRpcClientError<T>
impl<T> Error for JsonRpcClientError<T>
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<T> From<Error> for JsonRpcClientError<T>
impl<T> From<Error> for JsonRpcClientError<T>
Source§impl<T> From<JsonRpcClientError<T>> for ProviderError
impl<T> From<JsonRpcClientError<T>> for ProviderError
Source§fn from(value: JsonRpcClientError<T>) -> Self
fn from(value: JsonRpcClientError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for JsonRpcClientError<T>where
T: Freeze,
impl<T> !RefUnwindSafe for JsonRpcClientError<T>
impl<T> Send for JsonRpcClientError<T>where
T: Send,
impl<T> Sync for JsonRpcClientError<T>where
T: Sync,
impl<T> Unpin for JsonRpcClientError<T>where
T: Unpin,
impl<T> !UnwindSafe for JsonRpcClientError<T>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.