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

Create a new instance from a BatchTransport

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.