pub enum RpcResponseParsingError {
InvalidJsonRpcVersion {
id: Option<RpcId>,
expected: &'static str,
actual: Option<Value>,
},
MissingJsonRpcVersion {
id: Option<RpcId>,
},
MissingId,
InvalidId(RpcRequestParsingError),
MissingResultAndError {
id: RpcId,
},
BothResultAndError {
id: RpcId,
},
InvalidErrorObject(Error),
Serde(Error),
}Expand description
Error type for failures during RpcResponse parsing or validation.
Variants§
InvalidJsonRpcVersion
MissingJsonRpcVersion
MissingId
InvalidId(RpcRequestParsingError)
MissingResultAndError
BothResultAndError
InvalidErrorObject(Error)
Serde(Error)
Trait Implementations§
Source§impl Debug for RpcResponseParsingError
impl Debug for RpcResponseParsingError
Source§impl Display for RpcResponseParsingError
impl Display for RpcResponseParsingError
Source§impl Error for RpcResponseParsingError
impl Error for RpcResponseParsingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<Error> for RpcResponseParsingError
impl From<Error> for RpcResponseParsingError
Source§impl From<RpcRequestParsingError> for RpcResponseParsingError
impl From<RpcRequestParsingError> for RpcResponseParsingError
Source§fn from(e: RpcRequestParsingError) -> Self
fn from(e: RpcRequestParsingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcResponseParsingError
impl !RefUnwindSafe for RpcResponseParsingError
impl Send for RpcResponseParsingError
impl Sync for RpcResponseParsingError
impl Unpin for RpcResponseParsingError
impl !UnwindSafe for RpcResponseParsingError
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