Struct web3::transports::batch::Batch[][src]

pub struct Batch<T> { /* fields omitted */ }

Transport allowing to batch queries together.

Methods

impl<T> Batch<T> where
    T: BatchTransport
[src]

Creates new Batch transport given existing transport supporing batch requests.

Sends all requests as a batch.

Trait Implementations

impl<T: Debug> Debug for Batch<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Clone> Clone for Batch<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> Transport for Batch<T> where
    T: BatchTransport
[src]

The type of future this transport returns when a call is made.

Prepare serializable RPC call for given method with parameters.

Execute prepared RPC call.

Execute remote method with given parameters.

Auto Trait Implementations

impl<T> Send for Batch<T> where
    T: Send

impl<T> Sync for Batch<T> where
    T: Sync