pub enum InvalidResponse {
DeserailizeFailure,
ContainsNonNumericId,
}
Expand description
Returned by from_json_response on error.
Variants§
DeserailizeFailure
Response is not a valid jsonrpc response.
ContainsNonNumericId
Response contains an id that is not number. The client helpers in easy_jsonrpc never send non-number ids, so if the server responds with a non-number id, something is wrong.
Trait Implementations§
Source§impl Clone for InvalidResponse
impl Clone for InvalidResponse
Source§fn clone(&self) -> InvalidResponse
fn clone(&self) -> InvalidResponse
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InvalidResponse
impl Debug for InvalidResponse
Source§impl PartialEq for InvalidResponse
impl PartialEq for InvalidResponse
impl StructuralPartialEq for InvalidResponse
Auto Trait Implementations§
impl Freeze for InvalidResponse
impl RefUnwindSafe for InvalidResponse
impl Send for InvalidResponse
impl Sync for InvalidResponse
impl Unpin for InvalidResponse
impl UnwindSafe for InvalidResponse
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