pub enum RpcError {
JsonRpcError(Error),
ParseError(String, Error),
Timeout,
UnknownId,
Other(Error),
}
Expand description
The errors returned by the client.
Variants§
JsonRpcError(Error)
An error returned by the server.
ParseError(String, Error)
Failure to parse server response.
Timeout
Request timed out.
UnknownId
The server returned a response with an unknown id.
Other(Error)
Not rpc specific errors.
Trait Implementations§
Source§impl Fail for RpcError
impl Fail for RpcError
Source§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreAuto Trait Implementations§
impl Freeze for RpcError
impl !RefUnwindSafe for RpcError
impl Send for RpcError
impl Sync for RpcError
impl Unpin for RpcError
impl !UnwindSafe for RpcError
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