#[repr(i64)]pub enum ReservedErrorCode {
ParseError = -32_700,
InvalidRequest = -32_600,
MethodNotFound = -32_601,
InvalidParams = -32_602,
InternalError = -32_603,
}
Expand description
The various reserved codes which can be returned in the JSON-RPC response’s “error” object.
See the JSON-RPC Specification for further details.
Variants§
ParseError = -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.
Trait Implementations§
source§impl Clone for ReservedErrorCode
impl Clone for ReservedErrorCode
source§fn clone(&self) -> ReservedErrorCode
fn clone(&self) -> ReservedErrorCode
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 ReservedErrorCode
impl Debug for ReservedErrorCode
source§impl<'de> Deserialize<'de> for ReservedErrorCode
impl<'de> Deserialize<'de> for ReservedErrorCode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<ReservedErrorCode> for (i64, &'static str)
impl From<ReservedErrorCode> for (i64, &'static str)
source§fn from(error_code: ReservedErrorCode) -> Self
fn from(error_code: ReservedErrorCode) -> Self
Converts to this type from the input type.
source§impl Hash for ReservedErrorCode
impl Hash for ReservedErrorCode
source§impl Ord for ReservedErrorCode
impl Ord for ReservedErrorCode
source§fn cmp(&self, other: &ReservedErrorCode) -> Ordering
fn cmp(&self, other: &ReservedErrorCode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ReservedErrorCode
impl PartialEq for ReservedErrorCode
source§fn eq(&self, other: &ReservedErrorCode) -> bool
fn eq(&self, other: &ReservedErrorCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ReservedErrorCode
impl PartialOrd for ReservedErrorCode
source§fn partial_cmp(&self, other: &ReservedErrorCode) -> Option<Ordering>
fn partial_cmp(&self, other: &ReservedErrorCode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ReservedErrorCode
impl Serialize for ReservedErrorCode
impl Copy for ReservedErrorCode
impl Eq for ReservedErrorCode
impl ErrorCodeT for ReservedErrorCode
impl StructuralEq for ReservedErrorCode
impl StructuralPartialEq for ReservedErrorCode
Auto Trait Implementations§
impl RefUnwindSafe for ReservedErrorCode
impl Send for ReservedErrorCode
impl Sync for ReservedErrorCode
impl Unpin for ReservedErrorCode
impl UnwindSafe for ReservedErrorCode
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.