Enum json_rpc_types::ErrorCode
source · [−]pub enum ErrorCode {
ParseError,
InvalidRequest,
MethodNotFound,
InvalidParams,
InternalError,
ServerError(i64),
}Expand description
JSON-RPC 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 parameters.
InternalError
Internal JSON-RPC error.
ServerError(i64)
Reserved for implementation-defined server-errors.
Implementations
Trait Implementations
sourceimpl<'a> Deserialize<'a> for ErrorCode
impl<'a> Deserialize<'a> for ErrorCode
sourcefn deserialize<D: Deserializer<'a>>(
deserializer: D
) -> Result<ErrorCode, D::Error>
fn deserialize<D: Deserializer<'a>>(
deserializer: D
) -> Result<ErrorCode, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Copy for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more