pub enum RpcResponse {
Ok(RpcSuccess),
Err(RpcErrorBody),
}Expand description
JSON-RPC 2.0 response object.
Only the Ok / Err variants cross the wire; InternalError is a
transport-layer failure that is converted into a serialized
RpcResponse::Err before reaching the client.
Variants§
Implementations§
Trait Implementations§
Source§impl Debug for RpcResponse
impl Debug for RpcResponse
Auto Trait Implementations§
impl Freeze for RpcResponse
impl RefUnwindSafe for RpcResponse
impl Send for RpcResponse
impl Sync for RpcResponse
impl Unpin for RpcResponse
impl UnsafeUnpin for RpcResponse
impl UnwindSafe for RpcResponse
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