fuel_core_interfaces::poa_coordinator

Trait TransactionPool

Source
pub trait TransactionPool {
    // Required methods
    fn pending_number<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn total_consumable_gas<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn remove_txs<'life0, 'async_trait>(
        &'life0 mut self,
        tx_ids: Vec<TxId>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<ArcPoolTx>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn pending_number<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the number of pending transactions in the TxPool.

Source

fn total_consumable_gas<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn remove_txs<'life0, 'async_trait>( &'life0 mut self, tx_ids: Vec<TxId>, ) -> Pin<Box<dyn Future<Output = Result<Vec<ArcPoolTx>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§