pub enum RpcErrorCodes {
PARSE_ERROR = -32_700,
INVALID_REQUEST = -32_600,
METHOD_NOT_FOUND = -32_601,
INVALID_PARAMS = -32_602,
INTERNAL_ERROR = -32_603,
}
Expand description
Enum representing standard JSON-RPC error codes.
Variants§
PARSE_ERROR = -32_700
INVALID_REQUEST = -32_600
METHOD_NOT_FOUND = -32_601
INVALID_PARAMS = -32_602
INTERNAL_ERROR = -32_603
Trait Implementations§
Source§impl From<RpcErrorCodes> for i64
impl From<RpcErrorCodes> for i64
Source§fn from(code: RpcErrorCodes) -> Self
fn from(code: RpcErrorCodes) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcErrorCodes
impl RefUnwindSafe for RpcErrorCodes
impl Send for RpcErrorCodes
impl Sync for RpcErrorCodes
impl Unpin for RpcErrorCodes
impl UnwindSafe for RpcErrorCodes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more