reth_eth_wire_types::broadcast

Trait HandleMempoolData

source
pub trait HandleMempoolData {
    // Required methods
    fn is_empty(&self) -> bool;
    fn len(&self) -> usize;
    fn retain_by_hash(&mut self, f: impl FnMut(&TxHash) -> bool);
}
Expand description

Interface for handling mempool message data. Used in various filters in pipelines in TransactionsManager and in queries to TransactionPool.

Required Methods§

source

fn is_empty(&self) -> bool

The announcement contains no entries.

source

fn len(&self) -> usize

Returns the number of entries.

source

fn retain_by_hash(&mut self, f: impl FnMut(&TxHash) -> bool)

Retain only entries for which the hash in the entry satisfies a given predicate.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl HandleMempoolData for Vec<PooledTransactionsElement>

source§

fn is_empty(&self) -> bool

source§

fn len(&self) -> usize

source§

fn retain_by_hash(&mut self, f: impl FnMut(&TxHash) -> bool)

Implementors§