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]
impl<T> Batch<T> where
T: BatchTransport,
pub fn new(transport: T) -> Self
[src]
pub fn new(transport: T) -> Self
Creates new Batch transport given existing transport supporing batch requests.
pub fn submit_batch(&self) -> BatchFuture<T::Batch>
[src]
pub fn submit_batch(&self) -> BatchFuture<T::Batch>
Sends all requests as a batch.
Trait Implementations
impl<T: Debug> Debug for Batch<T>
[src]
impl<T: Debug> Debug for Batch<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Clone> Clone for Batch<T>
[src]
impl<T: Clone> Clone for Batch<T>
fn clone(&self) -> Batch<T>
[src]
fn clone(&self) -> Batch<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T> Transport for Batch<T> where
T: BatchTransport,
[src]
impl<T> Transport for Batch<T> where
T: BatchTransport,
type Out = SingleResult
The type of future this transport returns when a call is made.
fn prepare(&self, method: &str, params: Vec<Value>) -> (RequestId, Call)
[src]
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
[src]
fn send(&self, id: RequestId, request: Call) -> Self::Out
Execute prepared RPC call.
fn execute(&self, method: &str, params: Vec<Value>) -> Self::Out
[src]
fn execute(&self, method: &str, params: Vec<Value>) -> Self::Out
Execute remote method with given parameters.