pub enum RpcErrorCode {
ParseError = -32_700,
InvalidRequest = -32_600,
MethodNotFound = -32_601,
InvalidParams = -32_602,
InternalError = -32_603,
}
Expand description
JSON-RPC Standard Error Codes
Variants§
ParseError = -32_700
InvalidRequest = -32_600
MethodNotFound = -32_601
InvalidParams = -32_602
InternalError = -32_603
Implementations§
Trait Implementations§
Source§impl Clone for RpcErrorCode
impl Clone for RpcErrorCode
Source§fn clone(&self) -> RpcErrorCode
fn clone(&self) -> RpcErrorCode
Returns a duplicate 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 RpcErrorCode
impl Debug for RpcErrorCode
Source§impl<'a> Deserialize<'a> for RpcErrorCode
impl<'a> Deserialize<'a> for RpcErrorCode
Source§fn deserialize<D>(deserializer: D) -> Result<RpcErrorCode, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<RpcErrorCode, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<RpcErrorCode> for RpcError
impl From<RpcErrorCode> for RpcError
Source§fn from(code: RpcErrorCode) -> Self
fn from(code: RpcErrorCode) -> Self
Converts to this type from the input type.
Source§impl Serialize for RpcErrorCode
impl Serialize for RpcErrorCode
impl Copy for RpcErrorCode
Auto Trait Implementations§
impl Freeze for RpcErrorCode
impl RefUnwindSafe for RpcErrorCode
impl Send for RpcErrorCode
impl Sync for RpcErrorCode
impl Unpin for RpcErrorCode
impl UnwindSafe for RpcErrorCode
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