Enum jsonrpc_core::error::ErrorCode [] [src]

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

JSONRPC error code

Variants

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

The JSON sent is not a valid Request object.

The method does not exist / is not available.

Invalid method parameter(s).

Internal JSON-RPC error.

Reserved for implementation-defined server-errors.

Methods

impl ErrorCode
[src]

Returns integer code value

Returns human-readable description

Trait Implementations

impl Clone for ErrorCode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ErrorCode
[src]

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

This method tests for !=.

impl Debug for ErrorCode
[src]

Formats the value using the given formatter.

impl Deserialize for ErrorCode
[src]

Deserialize this value given this Deserializer.

impl Serialize for ErrorCode
[src]

Serializes this value into this serializer.