pub enum JsonRpcResponse<O, E> {
Error(JsonRpcResponseFailure<E>),
Ok(JsonRpcResponseSuccess<O>),
}Variants§
Error(JsonRpcResponseFailure<E>)
Ok(JsonRpcResponseSuccess<O>)
Implementations§
Source§impl<E, O> JsonRpcResponse<E, O>
impl<E, O> JsonRpcResponse<E, O>
Trait Implementations§
Source§impl<'de, O, E> Deserialize<'de> for JsonRpcResponse<O, E>where
O: Deserialize<'de>,
E: Deserialize<'de>,
impl<'de, O, E> Deserialize<'de> for JsonRpcResponse<O, E>where
O: Deserialize<'de>,
E: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<O, E> Freeze for JsonRpcResponse<O, E>
impl<O, E> RefUnwindSafe for JsonRpcResponse<O, E>where
O: RefUnwindSafe,
E: RefUnwindSafe,
impl<O, E> Send for JsonRpcResponse<O, E>
impl<O, E> Sync for JsonRpcResponse<O, E>
impl<O, E> Unpin for JsonRpcResponse<O, E>
impl<O, E> UnwindSafe for JsonRpcResponse<O, E>where
O: UnwindSafe,
E: UnwindSafe,
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