fuel_core_p2p::ports

Trait TxPool

Source
pub trait TxPool:
    Send
    + Sync
    + Clone {
    // Required methods
    fn get_tx_ids(
        &self,
        max_ids: usize,
    ) -> impl Future<Output = Result<Vec<TxId>>> + Send;
    fn get_full_txs(
        &self,
        tx_ids: Vec<TxId>,
    ) -> impl Future<Output = Result<Vec<Option<NetworkableTransactionPool>>>> + Send;
}

Required Methods§

Source

fn get_tx_ids( &self, max_ids: usize, ) -> impl Future<Output = Result<Vec<TxId>>> + Send

Get all tx ids in the pool

Source

fn get_full_txs( &self, tx_ids: Vec<TxId>, ) -> impl Future<Output = Result<Vec<Option<NetworkableTransactionPool>>>> + Send

Get full txs from the pool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§