PoolBuilder

Trait PoolBuilder 

Source
pub trait PoolBuilder<Node: FullNodeTypes>: Send {
    type Pool: TransactionPool<Transaction: PoolTransaction<Consensus = TxTy<Node::Types>>> + Unpin + 'static;

    // Required method
    fn build_pool(
        self,
        ctx: &BuilderContext<Node>,
    ) -> impl Future<Output = Result<Self::Pool>> + Send;
}
Expand description

A type that knows how to build the transaction pool.

Required Associated Types§

Source

type Pool: TransactionPool<Transaction: PoolTransaction<Consensus = TxTy<Node::Types>>> + Unpin + 'static

The transaction pool to build.

Required Methods§

Source

fn build_pool( self, ctx: &BuilderContext<Node>, ) -> impl Future<Output = Result<Self::Pool>> + Send

Creates the transaction 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§

Source§

impl<N, Tx> PoolBuilder<N> for NoopTransactionPoolBuilder<Tx>
where N: FullNodeTypes, Tx: EthPoolTransaction<Consensus = TxTy<N::Types>> + Unpin,

Source§

type Pool = NoopTransactionPool<Tx>

Source§

impl<Node, F, Fut, Pool> PoolBuilder<Node> for F
where Node: FullNodeTypes, Pool: TransactionPool<Transaction: PoolTransaction<Consensus = TxTy<Node::Types>>> + Unpin + 'static, F: FnOnce(&BuilderContext<Node>) -> Fut + Send, Fut: Future<Output = Result<Pool>> + Send,

Source§

type Pool = Pool