Enum jsonrpc_lite::ErrorCode [] [src]

pub enum ErrorCode {
    ParseError,
    InvalidRequest,
    MethodNotFound,
    InvalidParams,
    InternalError,
    ServerError(i64),
}

Error Code

Variants

ParseError

Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.

InvalidRequest

The JSON sent is not a valid Request object.

MethodNotFound

The method does not exist / is not available.

InvalidParams

Invalid method parameter(s).

InternalError

Internal JSON-RPC error.

ServerError(i64)

Reserved for implementation-defined server-errors.

Methods

impl ErrorCode
[src]

fn code(&self) -> i64

fn as_str(&self) -> &'static str

Trait Implementations

impl Debug for ErrorCode
[src]

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

Formats the value using the given formatter.

impl PartialEq for ErrorCode
[src]

fn eq(&self, __arg_0: &ErrorCode) -> bool

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

fn ne(&self, __arg_0: &ErrorCode) -> bool

This method tests for !=.

impl Clone for ErrorCode
[src]

fn clone(&self) -> ErrorCode

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

impl ToString for ErrorCode
[src]

fn to_string(&self) -> String

Converts the given value to a String. Read more