pub enum ResponseError {
Deserialize {
error: Error,
bytes: Vec<u8>,
},
InvalidVersion {
bytes: Vec<u8>,
},
}
Expand description
An error handed back when we cannot correctly deserialize
bytes into our [Response
] object.
Variants§
Deserialize
There was an error deserializing the response.
Fields
InvalidVersion
The “jsonrpc” field did not equal “2.0”.
Trait Implementations§
Source§impl Debug for ResponseError
impl Debug for ResponseError
Source§impl Display for ResponseError
impl Display for ResponseError
Auto Trait Implementations§
impl Freeze for ResponseError
impl !RefUnwindSafe for ResponseError
impl Send for ResponseError
impl Sync for ResponseError
impl Unpin for ResponseError
impl !UnwindSafe for ResponseError
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