Enum jsonrpsee_types::error::ErrorCode
source · pub enum ErrorCode {
ParseError,
OversizedRequest,
InvalidRequest,
MethodNotFound,
ServerIsBusy,
InvalidParams,
InternalError,
ServerError(i32),
}
Expand description
JSONRPC error code
Variants§
ParseError
Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.
OversizedRequest
The request was too big.
InvalidRequest
The JSON sent is not a valid Request object.
MethodNotFound
The method does not exist / is not available.
ServerIsBusy
Server is busy / resources are at capacity.
InvalidParams
Invalid method parameter(s).
InternalError
Internal JSON-RPC error.
ServerError(i32)
Reserved for implementation-defined server-errors.
Implementations§
Trait Implementations§
source§impl<'a> Deserialize<'a> for ErrorCode
impl<'a> Deserialize<'a> for ErrorCode
source§fn deserialize<D>(deserializer: D) -> Result<ErrorCode, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<ErrorCode, D::Error>where D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Error for ErrorCode
impl Error for ErrorCode
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl<'a> From<ErrorCode> for ErrorObject<'a>
impl<'a> From<ErrorCode> for ErrorObject<'a>
source§impl PartialEq<ErrorCode> for ErrorCode
impl PartialEq<ErrorCode> for ErrorCode
impl 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