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; }
Expand description

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

Required methods

Send an RPC request over the transport.

Send a batch of RPC requests over the transport.

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

Implementors