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

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

JSONRPC 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]

pub fn code(&self) -> i64[src]

Returns integer code value

pub fn description(&self) -> String[src]

Returns human-readable description

Trait Implementations

impl From<i64> for ErrorCode[src]

impl Clone for ErrorCode[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<ErrorCode> for ErrorCode[src]

impl Debug for ErrorCode[src]

impl Serialize for ErrorCode[src]

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

Auto Trait Implementations

impl Unpin for ErrorCode

impl Sync for ErrorCode

impl Send for ErrorCode

impl UnwindSafe for ErrorCode

impl RefUnwindSafe for ErrorCode

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]