[−][src]Trait web3::BatchTransport
A transport implementation supporting batch requests.
Associated Types
type Batch: Future<Item = Vec<Result<Value, Error>>, Error = Error>
The type of future this transport returns when a call is made.
Required methods
fn send_batch<T>(&self, requests: T) -> Self::Batch where
T: IntoIterator<Item = (RequestId, Call)>,
T: IntoIterator<Item = (RequestId, Call)>,
Sends a batch of prepared RPC calls.
Implementors
impl BatchTransport for Http[src]
type Batch = FetchTask<fn(_: Chunk) -> Result<Vec<Result<Value>>>>
fn send_batch<T>(&self, requests: T) -> Self::Batch where
T: IntoIterator<Item = (RequestId, Call)>, [src]
T: IntoIterator<Item = (RequestId, Call)>,
impl BatchTransport for Ipc[src]
type Batch = IpcTask<fn(_: Vec<Result<Value>>) -> Result<Vec<Result<Value>>>>
fn send_batch<T>(&self, requests: T) -> Self::Batch where
T: IntoIterator<Item = (RequestId, Call)>, [src]
T: IntoIterator<Item = (RequestId, Call)>,
impl BatchTransport for WebSocket[src]
type Batch = WsTask<fn(_: Vec<Result<Value>>) -> Result<Vec<Result<Value>>>>
fn send_batch<T>(&self, requests: T) -> Self::Batch where
T: IntoIterator<Item = (RequestId, Call)>, [src]
T: IntoIterator<Item = (RequestId, Call)>,
impl<A, B, ABatch, BBatch> BatchTransport for EitherTransport<A, B> where
A: BatchTransport<Batch = ABatch>,
B: BatchTransport<Batch = BBatch>,
A::Out: 'static,
B::Out: 'static,
ABatch: Future<Item = Vec<Result<Value, Error>>, Error = Error> + 'static,
BBatch: Future<Item = Vec<Result<Value, Error>>, Error = Error> + 'static, [src]
A: BatchTransport<Batch = ABatch>,
B: BatchTransport<Batch = BBatch>,
A::Out: 'static,
B::Out: 'static,
ABatch: Future<Item = Vec<Result<Value, Error>>, Error = Error> + 'static,
BBatch: Future<Item = Vec<Result<Value, Error>>, Error = Error> + 'static,
type Batch = Box<dyn Future<Item = Vec<Result<Value, Error>>, Error = Error>>
fn send_batch<T>(&self, requests: T) -> Self::Batch where
T: IntoIterator<Item = (RequestId, Call)>, [src]
T: IntoIterator<Item = (RequestId, Call)>,
impl<X, T: ?Sized> BatchTransport for X where
T: BatchTransport,
X: Deref<Target = T>,
X: Debug,
X: Clone, [src]
T: BatchTransport,
X: Deref<Target = T>,
X: Debug,
X: Clone,
type Batch = T::Batch
fn send_batch<I>(&self, requests: I) -> Self::Batch where
I: IntoIterator<Item = (RequestId, Call)>, [src]
I: IntoIterator<Item = (RequestId, Call)>,