[][src]Struct electrum_client::batch::Batch

pub struct Batch { /* fields omitted */ }

Helper structure that caches all the requests before they are actually sent to the server.

Calls on this function are stored and run when batch_call is run on a Client.

This structure can be used to make multiple different calls in one single run. For batch calls of the same type, there are shorthands methods defined on the Client, like batch_script_get_balance to ask the server for the balance of multiple scripts with a single request.

Methods

impl Batch[src]

pub fn script_list_unspent(&mut self, script: &Script)[src]

Add one blockchain.scripthash.listunspent request to the batch queue

pub fn script_get_history(&mut self, script: &Script)[src]

Add one blockchain.scripthash.get_history request to the batch queue

pub fn script_get_balance(&mut self, script: &Script)[src]

Add one blockchain.scripthash.get_balance request to the batch queue

pub fn transaction_get(&mut self, tx_hash: &Txid)[src]

Add one blockchain.transaction.get request to the batch queue

Trait Implementations

impl Default for Batch[src]

impl IntoIterator for Batch[src]

type Item = (String, Vec<Param>)

The type of the elements being iterated over.

type IntoIter = IntoIter<Self::Item>

Which kind of iterator are we turning this into?

Auto Trait Implementations

impl RefUnwindSafe for Batch

impl Send for Batch

impl Sync for Batch

impl Unpin for Batch

impl UnwindSafe for Batch

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.