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
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.