Enum jsonrpc_core::types::response::Response [] [src]

pub enum Response {
    Single(Output),
    Batch(Vec<Output>),
}

Synchronous response

Variants

Single response

Response to batch request (batch of responses)

Methods

impl Response
[src]

Creates new Response with given error and Version

Trait Implementations

impl Debug for Response
[src]

Formats the value using the given formatter.

impl PartialEq for Response
[src]

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

This method tests for !=.

impl<'a> Deserialize<'a> for Response
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for Response
[src]

Serialize this value into the given Serde serializer. Read more

impl From<Failure> for Response
[src]

Performs the conversion.

impl From<Success> for Response
[src]

Performs the conversion.