[−][src]Struct electrum_client::Batch
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
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
pub fn estimate_fee(&mut self, number: usize)
[src]
Add one blockchain.estimatefee
request to the batch queue
pub fn block_header(&mut self, height: u32)
[src]
Add one blockchain.block.get_header
request to the batch queue
pub fn iter(&self) -> BatchIter<'_>
[src]
Returns an iterator on the batch
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Batch
[src]
impl Send for Batch
[src]
impl Sync for Batch
[src]
impl Unpin for Batch
[src]
impl UnwindSafe for Batch
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,