Struct jsonrpc::ResponseCompletable [] [src]

pub struct ResponseCompletable { /* fields omitted */ }

A completable for a JSON-RPC request. This is an object that must be "completed", that is, a result must be provided. (this is the inverse of a future)

Must be completed once and only once, otherwise a panic is generated upon drop.

On completion, the on_response callback is invoked. Typically: this will write an appropriate JSON-RPC response to the endpoint output.

Methods

impl ResponseCompletable
[src]