Struct jsonrpc_core::async::AsyncResult [] [src]

pub struct AsyncResult {
    // some fields omitted
}

Asynchronous result receiving end

Methods

impl AsyncResult
[src]

Creates new AsyncResult (receiver) and Ready (transmitter)

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

Blocks current thread and awaits for result.

Trait Implementations

impl Debug for AsyncResult
[src]

Formats the value using the given formatter.

impl Clone for AsyncResult
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Into<MethodResult> for AsyncResult
[src]

Performs the conversion.