pub enum RpcErrorKind {
ParseError,
InvalidRequest,
MethodNotFound,
InvalidParams,
InternalError,
Custom(i16),
}Expand description
RPC error kind
Variants§
ParseError
Parse error
InvalidRequest
Invalid request
MethodNotFound
Method not found
InvalidParams
Invalid parameters (reserved for the future/manual use)
InternalError
Internal error
Custom(i16)
Custom error
Trait Implementations§
Source§impl Clone for RpcErrorKind
impl Clone for RpcErrorKind
Source§fn clone(&self) -> RpcErrorKind
fn clone(&self) -> RpcErrorKind
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 RpcErrorKind
impl Debug for RpcErrorKind
Source§impl<'de> Deserialize<'de> for RpcErrorKind
impl<'de> Deserialize<'de> for RpcErrorKind
Source§fn deserialize<D>(deserializer: D) -> Result<RpcErrorKind, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<RpcErrorKind, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RpcErrorKind
impl Display for RpcErrorKind
Source§impl From<RpcErrorKind> for i16
impl From<RpcErrorKind> for i16
Source§fn from(code: RpcErrorKind) -> Self
fn from(code: RpcErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<i16> for RpcErrorKind
impl From<i16> for RpcErrorKind
Source§impl PartialEq for RpcErrorKind
impl PartialEq for RpcErrorKind
Source§impl Serialize for RpcErrorKind
impl Serialize for RpcErrorKind
impl Copy for RpcErrorKind
impl Eq for RpcErrorKind
impl StructuralPartialEq for RpcErrorKind
Auto Trait Implementations§
impl Freeze for RpcErrorKind
impl RefUnwindSafe for RpcErrorKind
impl Send for RpcErrorKind
impl Sync for RpcErrorKind
impl Unpin for RpcErrorKind
impl UnwindSafe for RpcErrorKind
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