Enum jsonrpc_core::async::Response [] [src]

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

Response type (potentially asynchronous)

Variants

Single response

Batch response

Methods

impl Response
[src]

Blocks current thread and awaits a result.

Adds closure to be invoked when result is available. Callback is invoked right away if result is instantly available and true is returned. false is returned when listener has been added

Trait Implementations

impl Debug for Response
[src]

Formats the value using the given formatter.

impl From<Failure> for Response
[src]

Performs the conversion.

impl From<Success> for Response
[src]

Performs the conversion.