#[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§impl PartialOrd for ReservedErrorCode
impl PartialOrd for ReservedErrorCode
Source§impl Serialize for ReservedErrorCode
impl Serialize for ReservedErrorCode
impl Copy for ReservedErrorCode
impl Eq for ReservedErrorCode
impl ErrorCodeT for ReservedErrorCode
impl StructuralPartialEq for ReservedErrorCode
Auto Trait Implementations§
impl Freeze for ReservedErrorCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more