[−][src]Trait web3_etz::Transport
Transport implementation
Associated Types
type Out: Future<Item = Value, Error = Error>
The type of future this transport returns when a call is made.
Required methods
fn prepare(&self, method: &str, params: Vec<Value>) -> (RequestId, Call)
Prepare serializable RPC call for given method with parameters.
fn send(&self, id: RequestId, request: Call) -> Self::Out
Execute prepared RPC call.
Provided methods
fn execute(&self, method: &str, params: Vec<Value>) -> Self::Out
Execute remote method with given parameters.
Implementors
impl Transport for Http
[src]
type Out = FetchTask<fn(_: Chunk) -> Result<Value>>
fn prepare(&self, method: &str, params: Vec<Value>) -> (RequestId, Call)
[src]
fn send(&self, id: RequestId, request: Call) -> Self::Out
[src]
impl Transport for Ipc
[src]
type Out = IpcTask<fn(_: Vec<Result<Value>>) -> Result<Value>>
fn prepare(&self, method: &str, params: Vec<Value>) -> (RequestId, Call)
[src]
fn send(&self, id: RequestId, request: Call) -> Self::Out
[src]
impl Transport for WebSocket
[src]
type Out = WsTask<fn(_: Vec<Result<Value>>) -> Result<Value>>
fn prepare(&self, method: &str, params: Vec<Value>) -> (RequestId, Call)
[src]
fn send(&self, id: RequestId, request: Call) -> Self::Out
[src]
impl<T> Transport for Batch<T> where
T: BatchTransport,
[src]
T: BatchTransport,
type Out = SingleResult
fn prepare(&self, method: &str, params: Vec<Value>) -> (RequestId, Call)
[src]
fn send(&self, id: RequestId, request: Call) -> Self::Out
[src]
impl<X, T: ?Sized> Transport for X where
T: Transport,
X: Deref<Target = T>,
X: Debug,
X: Clone,
[src]
T: Transport,
X: Deref<Target = T>,
X: Debug,
X: Clone,