pub trait Transport: Debug + Clone {
type Out: Future<Output = Result<Value>>;
// Required methods
fn prepare(&self, method: &str, params: Vec<Value>) -> (RequestId, Call);
fn send(&self, id: RequestId, request: Call) -> Self::Out;
// Provided method
fn execute(&self, method: &str, params: Vec<Value>) -> Self::Out { ... }
}
Expand description
Transport implementation