Struct jsonrpc_client_http::HttpHandle
[−]
[src]
pub struct HttpHandle { /* fields omitted */ }A handle to a HttpTransport. This implements
jsonrpc_client_core::Transport and can be used as the transport for a RPC client generated
by the jsonrpc_client! macro.
Trait Implementations
impl Debug for HttpHandle[src]
impl Clone for HttpHandle[src]
fn clone(&self) -> HttpHandle[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Transport for HttpHandle[src]
type Error = Error
The type of error that this transport emits if it fails.
fn get_next_id(&mut self) -> u64[src]
Returns an id that has not yet been used on this transport. Used by the RPC clients to fill in the "id" field of a request. Read more
fn send(&self, json_data: Vec<u8>) -> BoxFuture<Vec<u8>, Error>[src]
Sends the given data over the transport and returns a future that will complete with the response to the request, or the transport specific error if something went wrong. Read more