[−][src]Trait web3::Transport
Transport implementation
Associated Types
type Out: Future<Output = Result<Value>>
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 = Response<fn(_: Vec<u8>) -> 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 = Response<Value, fn(_: Result<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<A, B, AOut, BOut> Transport for Either<A, B> where
A: Transport<Out = AOut>,
B: Transport<Out = BOut>,
AOut: Future<Output = Result<Value>> + 'static + Send,
BOut: Future<Output = Result<Value>> + 'static + Send,
[src]
A: Transport<Out = AOut>,
B: Transport<Out = BOut>,
AOut: Future<Output = Result<Value>> + 'static + Send,
BOut: Future<Output = Result<Value>> + 'static + Send,
type Out = BoxFuture<'static, 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,