[][src]Trait jsonrpc::client::Transport

pub trait Transport: Send + Sync + 'static {
    fn send_request(&self, _: Request) -> Result<Response, Error>;
fn send_batch(&self, _: &[Request]) -> Result<Vec<Response>, Error>;
fn fmt_target(&self, f: &mut Formatter) -> Result; }

An interface for a transport over which to use the JSONRPC protocol.

Required methods

fn send_request(&self, _: Request) -> Result<Response, Error>

Send an RPC request over the transport.

fn send_batch(&self, _: &[Request]) -> Result<Vec<Response>, Error>

Send a batch of RPC requests over the transport.

fn fmt_target(&self, f: &mut Formatter) -> Result

Format the target of this transport. I.e. the URL/socket/...

Loading content...

Implementors

impl Transport for SimpleHttpTransport[src]

Loading content...