Struct tokio_jsonrpc::message::RpcError  
                   
                       [−]
                   
               [src]
pub struct RpcError {
    pub code: i64,
    pub message: String,
    pub data: Option<Value>,
}An error code.
Fields
code: i64
                           
                           
                           message: String
                           
                           
                           data: Option<Value>
                           Methods
impl RpcError[src]
fn new(code: i64, message: String, data: Option<Value>) -> Self
A generic constructor.
Mostly for completeness, doesn't do anything but filling in the corresponding fields.
fn invalid_params(msg: Option<String>) -> Self
Create an Invalid Param error.
fn server_error<E: Serialize>(e: Option<E>) -> Self
Create a server error.
fn invalid_request() -> Self
Create an invalid request error.
fn parse_error(e: String) -> Self
Create a parse error.
fn method_not_found(method: String) -> Self
Create a method not found error.
Trait Implementations
impl Debug for RpcError[src]
impl Clone for RpcError[src]
fn clone(&self) -> RpcError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more