Struct tokio_jsonrpc::message::RpcError [] [src]

pub struct RpcError {
    pub code: i64,
    pub message: String,
    pub data: Option<Value>,
}

An error code.

Fields

Methods

impl RpcError
[src]

[src]

A generic constructor.

Mostly for completeness, doesn't do anything but filling in the corresponding fields.

[src]

Create an Invalid Param error.

[src]

Create a server error.

[src]

Create an invalid request error.

[src]

Create a parse error.

[src]

Create a method not found error.

Trait Implementations

impl Debug for RpcError
[src]

[src]

Formats the value using the given formatter.

impl Clone for RpcError
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for RpcError
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.