Enum jsonrpc_core::types::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]

[src]

Returns integer code value

[src]

Returns human-readable description

Trait Implementations

impl Debug for ErrorCode
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for ErrorCode
[src]

[src]

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

[src]

This method tests for !=.

impl Clone for ErrorCode
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<i64> for ErrorCode
[src]

[src]

Performs the conversion.

impl<'a> Deserialize<'a> for ErrorCode
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for ErrorCode
[src]

[src]

Serialize this value into the given Serde serializer. Read more