Enum jsonrpc_core::error::ErrorCode
[−]
[src]
pub enum ErrorCode {
ParseError,
InvalidRequest,
MethodNotFound,
InvalidParams,
InternalError,
SessionNotSupported,
ServerError(i64),
}JSONRPC error code
Variants
ParseErrorInvalid JSON was received by the server. An error occurred on the server while parsing the JSON text.
InvalidRequestThe JSON sent is not a valid Request object.
MethodNotFoundThe method does not exist / is not available.
InvalidParamsInvalid method parameter(s).
InternalErrorInternal JSON-RPC error.
SessionNotSupportedPub-Sub not supported
ServerError(i64)Reserved for implementation-defined server-errors.
Methods
impl ErrorCode[src]
fn code(&self) -> i64
Returns integer code value
fn description(&self) -> String
Returns human-readable description
Trait Implementations
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 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 Debug for ErrorCode[src]
impl Deserialize for ErrorCode[src]
fn deserialize<D>(deserializer: &mut D) -> Result<ErrorCode, D::Error> where D: Deserializer
Deserialize this value given this Deserializer.
impl Serialize for ErrorCode[src]
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer
Serializes this value into this serializer.