Struct jsonrpc_sys::ErrorCode
source · pub struct ErrorCode(pub i64);Expand description
A JSON-RPC 2.0 error code.
Tuple Fields§
§0: i64Implementations§
source§impl ErrorCode
impl ErrorCode
sourcepub const PARSE_ERROR: ErrorCode = _
pub const PARSE_ERROR: ErrorCode = _
The error code returned when the server cannot parsed the request.
sourcepub const INVALID_REQUEST: ErrorCode = _
pub const INVALID_REQUEST: ErrorCode = _
The error code returned when the request is not a valid JSON-RPC 2.0 request.
sourcepub const METHOD_NOT_FOUND: ErrorCode = _
pub const METHOD_NOT_FOUND: ErrorCode = _
The error code returned when the method does not exist.
sourcepub const INVALID_PARAMS: ErrorCode = _
pub const INVALID_PARAMS: ErrorCode = _
The error code returned when the parameters are invalid.
sourcepub const INTERNAL_ERROR: ErrorCode = _
pub const INTERNAL_ERROR: ErrorCode = _
The error code returned when an internal error occurs.
Trait Implementations§
source§impl Ord for ErrorCode
impl Ord for ErrorCode
source§impl PartialEq for ErrorCode
impl PartialEq for ErrorCode
source§impl PartialOrd for ErrorCode
impl PartialOrd for ErrorCode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralEq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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