Struct electrum_client::Batch[][src]

pub struct Batch { /* fields omitted */ }
Expand description

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.

Implementations

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

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

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

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

Add one blockchain.estimatefee request to the batch queue

Add one blockchain.block.get_header request to the batch queue

Returns an iterator on the batch

Trait Implementations

Returns the “default value” for a type. Read more

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

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.

Performs the conversion.

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.