Enum jsonrpc_lite::ErrorCode
[−]
[src]
pub enum ErrorCode {
ParseError,
InvalidRequest,
MethodNotFound,
InvalidParams,
InternalError,
ServerError(i64),
}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.
ServerError(i64)Reserved for implementation-defined server-errors.
Methods
impl ErrorCode[src]
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 !=.