pub enum ErrorCode {
ParseError,
InvalidRequest,
MsodNotFound,
InvalidParams,
InternalError,
ServerError(i64),
}
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.
InvalidRequest
The JSON sent is not a valid Request object.
MsodNotFound
The msod does not exist / is not available.
InvalidParams
Invalid msod parameter(s).
InternalError
Internal JSON-RPC error.
ServerError(i64)
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
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