#[repr(i32)]pub enum JsonRpcErrorCode {
ParseError = -32_700,
InvalidRequest = -32_600,
MethodNotFound = -32_601,
InvalidParams = -32_602,
InternalError = -32_603,
}
Expand description
A subset of JSON-RPC error codes.
Variants§
ParseError = -32_700
InvalidRequest = -32_600
MethodNotFound = -32_601
InvalidParams = -32_602
InternalError = -32_603
Trait Implementations§
Source§impl Clone for JsonRpcErrorCode
impl Clone for JsonRpcErrorCode
Source§fn clone(&self) -> JsonRpcErrorCode
fn clone(&self) -> JsonRpcErrorCode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for JsonRpcErrorCode
impl Debug for JsonRpcErrorCode
Source§impl From<ProtocolErrorType> for JsonRpcErrorCode
impl From<ProtocolErrorType> for JsonRpcErrorCode
Source§fn from(value: ProtocolErrorType) -> JsonRpcErrorCode
fn from(value: ProtocolErrorType) -> JsonRpcErrorCode
Converts to this type from the input type.
Source§impl From<i32> for JsonRpcErrorCode
impl From<i32> for JsonRpcErrorCode
Source§fn from(value: i32) -> JsonRpcErrorCode
fn from(value: i32) -> JsonRpcErrorCode
Converts to this type from the input type.
Source§impl Into<ProtocolErrorType> for JsonRpcErrorCode
impl Into<ProtocolErrorType> for JsonRpcErrorCode
Source§fn into(self) -> ProtocolErrorType
fn into(self) -> ProtocolErrorType
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for JsonRpcErrorCode
impl PartialEq for JsonRpcErrorCode
impl StructuralPartialEq for JsonRpcErrorCode
Auto Trait Implementations§
impl Freeze for JsonRpcErrorCode
impl RefUnwindSafe for JsonRpcErrorCode
impl Send for JsonRpcErrorCode
impl Sync for JsonRpcErrorCode
impl Unpin for JsonRpcErrorCode
impl UnwindSafe for JsonRpcErrorCode
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