pub trait PoolBuilder<Node: FullNodeTypes, Evm>: Send {
type Pool: TransactionPool<Transaction: PoolTransaction<Consensus = TxTy<Node::Types>>> + Unpin + 'static;
// Required method
fn build_pool(
self,
ctx: &BuilderContext<Node>,
evm_config: Evm,
) -> impl Future<Output = Result<Self::Pool>> + Send;
}Expand description
A type that knows how to build the transaction pool.
Required Associated Types§
Sourcetype Pool: TransactionPool<Transaction: PoolTransaction<Consensus = TxTy<Node::Types>>> + Unpin + 'static
type Pool: TransactionPool<Transaction: PoolTransaction<Consensus = TxTy<Node::Types>>> + Unpin + 'static
The transaction pool to build.
Required Methods§
Sourcefn build_pool(
self,
ctx: &BuilderContext<Node>,
evm_config: Evm,
) -> impl Future<Output = Result<Self::Pool>> + Send
fn build_pool( self, ctx: &BuilderContext<Node>, evm_config: Evm, ) -> 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".