pub trait Transport: Debug + Clone {
    type Out: Future<Output = Result<Value>>;

    fn prepare(&self, method: &str, params: Vec<Value>) -> (RequestId, Call);
    fn send(&self, id: RequestId, request: Call) -> Self::Out;

    fn execute(&self, method: &str, params: Vec<Value>) -> Self::Out { ... }
}
Expand description

Transport implementation

Required Associated Types

The type of future this transport returns when a call is made.

Required Methods

Prepare serializable RPC call for given method with parameters.

Execute prepared RPC call.

Provided Methods

Execute remote method with given parameters.

Implementors