pub enum Error<C> {
Client(C),
JsonRpc(JsonRpcError),
Serde(Error),
}
Variants§
Trait Implementations§
Source§impl<C> Error for Error<C>where
C: StdError + 'static,
impl<C> Error for Error<C>where
C: StdError + 'static,
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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<C> From<JsonRpcError> for Error<C>
impl<C> From<JsonRpcError> for Error<C>
Source§fn from(jsonrpc_error: JsonRpcError) -> Self
fn from(jsonrpc_error: JsonRpcError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<C> Freeze for Error<C>where
C: Freeze,
impl<C> !RefUnwindSafe for Error<C>
impl<C> Send for Error<C>where
C: Send,
impl<C> Sync for Error<C>where
C: Sync,
impl<C> Unpin for Error<C>where
C: Unpin,
impl<C> !UnwindSafe for Error<C>
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