pub enum JsonRpcErrorReason {
ParseError,
InvalidRequest,
MethodNotFound,
InvalidParams,
InternalError,
ServerError(i32),
ApplicationError(i32),
}
Variants§
ParseError
InvalidRequest
MethodNotFound
InvalidParams
InternalError
ServerError(i32)
-32000 to -32099
ApplicationError(i32)
All other space
Trait Implementations§
Source§impl Clone for JsonRpcErrorReason
impl Clone for JsonRpcErrorReason
Source§fn clone(&self) -> JsonRpcErrorReason
fn clone(&self) -> JsonRpcErrorReason
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 JsonRpcErrorReason
impl Debug for JsonRpcErrorReason
Source§impl Display for JsonRpcErrorReason
impl Display for JsonRpcErrorReason
Source§impl From<JsonRpcErrorReason> for i32
impl From<JsonRpcErrorReason> for i32
Source§fn from(reason: JsonRpcErrorReason) -> i32
fn from(reason: JsonRpcErrorReason) -> i32
Converts to this type from the input type.
impl Copy for JsonRpcErrorReason
Auto Trait Implementations§
impl Freeze for JsonRpcErrorReason
impl RefUnwindSafe for JsonRpcErrorReason
impl Send for JsonRpcErrorReason
impl Sync for JsonRpcErrorReason
impl Unpin for JsonRpcErrorReason
impl UnwindSafe for JsonRpcErrorReason
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