pub enum ErrorKind {
Msg(String),
TransportError,
SerializeError,
ResponseError(&'static str),
JsonRpcError(Error),
// some variants omitted
}
Expand description
The kind of an error.
Variants§
Msg(String)
A convenient variant for String.
TransportError
Error in the underlying transport layer.
SerializeError
Error while serializing method parameters.
ResponseError(&'static str)
Error while deserializing or parsing the response data.
JsonRpcError(Error)
The request was replied to, but with a JSON-RPC 2.0 error.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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