pub enum RpcErrorKind {
Internal,
Unauthorized,
UnknownMethod,
MalformedRequest,
Server(i16),
Raw(i16),
}Expand description
Errors related to RPC implementation.
Variants§
Internal
Internal error (probably a panic or something).
Request required some additional authentication.
UnknownMethod
Unknown method.
MalformedRequest
If the request could not be parsed, for example.
Server(i16)
Server error for implementer-defined error codes.
Raw(i16)
If the error is something else.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RpcErrorKind
Source§impl Debug for RpcErrorKind
impl Debug for RpcErrorKind
Source§impl Display for RpcErrorKind
impl Display for RpcErrorKind
Source§impl Error for RpcErrorKind
impl Error for RpcErrorKind
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for RpcErrorKind
impl RefUnwindSafe for RpcErrorKind
impl Send for RpcErrorKind
impl Sync for RpcErrorKind
impl Unpin for RpcErrorKind
impl UnsafeUnpin 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