Enum jsonrpc::error::Error [] [src]

pub enum Error {
    Json(Error),
    Hyper(Error),
    Rpc(RpcError),
    NoErrorOrResult,
    NonceMismatch,
    VersionMismatch,
}

A library error

Variants

Json(Error)

Json error

Hyper(Error)

Client error

Rpc(RpcError)

Error response

NoErrorOrResult

Response has neither error nor result

NonceMismatch

Response to a request did not have the expected nonce

VersionMismatch

Response to a request had a jsonrpc field other than "2.0"

Trait Implementations

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<Error> for Error
[src]

fn from(e: Error) -> Error

Performs the conversion.

impl From<Error> for Error
[src]

fn from(e: Error) -> Error

Performs the conversion.

impl From<RpcError> for Error
[src]

fn from(e: RpcError) -> Error

Performs the conversion.

impl Display for Error
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for Error
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>

The lower-level cause of this error, if any. Read more