pub struct ErrorCode(pub i64);
Expand description
A JSON-RPC 2.0 error code.
Tuple Fields§
§0: i64
Implementations§
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 PartialOrd for ErrorCode
impl PartialOrd for ErrorCode
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
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