Enum jsonrpsee_http_client::v2::error::JsonRpcErrorCode [−][src]
pub enum JsonRpcErrorCode { ParseError, InvalidRequest, MethodNotFound, InvalidParams, InternalError, ServerError(i32), }
Expand description
JSONRPC error code
Variants
Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.
The JSON sent is not a valid Request object.
The method does not exist / is not available.
Invalid method parameter(s).
Internal JSON-RPC error.
ServerError(i32)
Reserved for implementation-defined server-errors.
Implementations
Trait Implementations
impl Clone for JsonRpcErrorCode
[src]
impl Clone for JsonRpcErrorCode
[src]pub fn clone(&self) -> JsonRpcErrorCode
[src]
pub fn clone(&self) -> JsonRpcErrorCode
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for JsonRpcErrorCode
[src]
impl Debug for JsonRpcErrorCode
[src]impl<'a> Deserialize<'a> for JsonRpcErrorCode
[src]
impl<'a> Deserialize<'a> for JsonRpcErrorCode
[src]pub fn deserialize<D>(
deserializer: D
) -> Result<JsonRpcErrorCode, <D as Deserializer<'a>>::Error> where
D: Deserializer<'a>,
[src]
pub fn deserialize<D>(
deserializer: D
) -> Result<JsonRpcErrorCode, <D as Deserializer<'a>>::Error> where
D: Deserializer<'a>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Display for JsonRpcErrorCode
[src]
impl Display for JsonRpcErrorCode
[src]impl Error for JsonRpcErrorCode
[src]
impl Error for JsonRpcErrorCode
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl<'a> From<JsonRpcErrorCode> for JsonRpcErrorObject<'a>
[src]
impl<'a> From<JsonRpcErrorCode> for JsonRpcErrorObject<'a>
[src]pub fn from(code: JsonRpcErrorCode) -> JsonRpcErrorObject<'a>
[src]
pub fn from(code: JsonRpcErrorCode) -> JsonRpcErrorObject<'a>
[src]Performs the conversion.
impl From<i32> for JsonRpcErrorCode
[src]
impl From<i32> for JsonRpcErrorCode
[src]pub fn from(code: i32) -> JsonRpcErrorCode
[src]
pub fn from(code: i32) -> JsonRpcErrorCode
[src]Performs the conversion.
impl PartialEq<JsonRpcErrorCode> for JsonRpcErrorCode
[src]
impl PartialEq<JsonRpcErrorCode> for JsonRpcErrorCode
[src]pub fn eq(&self, other: &JsonRpcErrorCode) -> bool
[src]
pub fn eq(&self, other: &JsonRpcErrorCode) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &JsonRpcErrorCode) -> bool
[src]
pub fn ne(&self, other: &JsonRpcErrorCode) -> bool
[src]This method tests for !=
.
impl Serialize for JsonRpcErrorCode
[src]
impl Serialize for JsonRpcErrorCode
[src]pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]Serialize this value into the given Serde serializer. Read more
impl Copy for JsonRpcErrorCode
[src]
impl StructuralPartialEq for JsonRpcErrorCode
[src]
Auto Trait Implementations
impl RefUnwindSafe for JsonRpcErrorCode
impl Send for JsonRpcErrorCode
impl Sync for JsonRpcErrorCode
impl Unpin for JsonRpcErrorCode
impl UnwindSafe for JsonRpcErrorCode
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,