Struct ethcontract::batch::CallBatch [−][src]
pub struct CallBatch<T: Web3BatchTransport> { /* fields omitted */ }
Expand description
Struct allowing to batch multiple calls into a single Node request
Implementations
Adds a call request to the current batch. The resulting future can only resolve after
the batch has been resolved via execute_all
.
Explicitly returns a Future instead of being declared async
so that we can split the
logic into a synchronous and asynchronous section and don’t want to capture &mut self
in the future.
Panics, if the batch is dropped before executing.
Execute and resolve all enqueued CallRequests in a batched RPC call, chunk_size
requests per roundtrip.
Top level request failures will be forwarded to the individual requests.
Auto Trait Implementations
impl<T> !RefUnwindSafe for CallBatch<T>
impl<T> !UnwindSafe for CallBatch<T>