Struct jsonrpc_client::RpcResponse[][src]

pub struct RpcResponse<R> {
    pub id: String,
    pub result: Option<R>,
    pub error: Option<RpcError>,
}

Fields

Methods

impl<R> RpcResponse<R>
[src]

Trait Implementations

impl<R: Debug> Debug for RpcResponse<R>
[src]

Formats the value using the given formatter. Read more

impl<R: PartialEq> PartialEq for RpcResponse<R>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<R> Into<StdResult<R, RpcError>> for RpcResponse<R>
[src]

Performs the conversion.

Auto Trait Implementations

impl<R> Send for RpcResponse<R> where
    R: Send

impl<R> Sync for RpcResponse<R> where
    R: Sync