Trait reth::builder::components::PoolBuilder

source ·
pub trait PoolBuilder<Node>: Send
where Node: FullNodeTypes,
{ type Pool: TransactionPool + Unpin + 'static; // Required method fn build_pool( self, ctx: &BuilderContext<Node>, ) -> impl Future<Output = Result<Self::Pool, Report>> + Send; }
Expand description

A type that knows how to build the transaction pool.

Required Associated Types§

source

type Pool: TransactionPool + Unpin + 'static

The transaction pool to build.

Required Methods§

source

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

Creates the transaction pool.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<Node> PoolBuilder<Node> for OptimismPoolBuilder
where Node: FullNodeTypes,

Implementors§

source§

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

§

type Pool = Pool