#[repr(i32)]pub enum RpcErrorCode {
ParseFailed = -32_700,
InvalidRequest = -32_600,
MethodNotFound = -32_601,
InvalidParams = -32_602,
InternalError = -32_603,
PolicyDenied = -32_001,
ChainNotSupported = -32_002,
KeyNotFound = -32_003,
SignatureFailed = -32_004,
}Expand description
JSON-RPC 2.0 error codes.
Standard codes from -32700 to -32600 are defined by the JSON-RPC spec. Application-specific codes use the -32000 to -32099 range.
Variants§
ParseFailed = -32_700
Invalid JSON was received by the server.
InvalidRequest = -32_600
The JSON sent is not a valid Request object.
MethodNotFound = -32_601
The method does not exist or is not available.
InvalidParams = -32_602
Invalid method parameter(s).
InternalError = -32_603
Internal JSON-RPC error.
PolicyDenied = -32_001
Policy denied the transaction.
ChainNotSupported = -32_002
The requested chain is not supported.
KeyNotFound = -32_003
The requested key was not found.
SignatureFailed = -32_004
The signing operation failed.
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 Display for RpcErrorCode
impl Display for RpcErrorCode
Source§impl From<&TxGateError> for RpcErrorCode
impl From<&TxGateError> for RpcErrorCode
Source§fn from(error: &TxGateError) -> Self
fn from(error: &TxGateError) -> Self
Converts to this type from the input type.
Source§impl From<TxGateError> for RpcErrorCode
impl From<TxGateError> for RpcErrorCode
Source§fn from(error: TxGateError) -> Self
fn from(error: TxGateError) -> Self
Converts to this type from the input type.
Source§impl Hash for RpcErrorCode
impl Hash for RpcErrorCode
Source§impl PartialEq for RpcErrorCode
impl PartialEq for RpcErrorCode
impl Copy for RpcErrorCode
impl Eq for RpcErrorCode
impl StructuralPartialEq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.