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§
sourcefn get_tx_ids(
&self,
max_ids: usize,
) -> impl Future<Output = Result<Vec<TxId>>> + Send
fn get_tx_ids( &self, max_ids: usize, ) -> impl Future<Output = Result<Vec<TxId>>> + Send
Get all tx ids in the pool
sourcefn get_full_txs(
&self,
tx_ids: Vec<TxId>,
) -> impl Future<Output = Result<Vec<Option<NetworkableTransactionPool>>>> + Send
fn get_full_txs( &self, tx_ids: Vec<TxId>, ) -> impl Future<Output = Result<Vec<Option<NetworkableTransactionPool>>>> + Send
Get full txs from the pool
Object Safety§
This trait is not object safe.