pub trait PayloadBuilderBuilder<Node, Pool, EvmConfig>: Sized + Sendwhere
Node: FullNodeTypes,
Pool: TransactionPool,{
type PayloadBuilder: PayloadBuilderFor<<Node as FullNodeTypes>::Types> + Unpin + 'static;
// Required method
fn build_payload_builder(
self,
ctx: &BuilderContext<Node>,
pool: Pool,
evm_config: EvmConfig,
) -> impl Future<Output = Result<Self::PayloadBuilder, Report>> + Send;
}
Expand description
A type that knows how to build a payload builder to plug into BasicPayloadServiceBuilder
.
Required Associated Types§
Sourcetype PayloadBuilder: PayloadBuilderFor<<Node as FullNodeTypes>::Types> + Unpin + 'static
type PayloadBuilder: PayloadBuilderFor<<Node as FullNodeTypes>::Types> + Unpin + 'static
Payload builder implementation.
Required Methods§
Sourcefn build_payload_builder(
self,
ctx: &BuilderContext<Node>,
pool: Pool,
evm_config: EvmConfig,
) -> impl Future<Output = Result<Self::PayloadBuilder, Report>> + Send
fn build_payload_builder( self, ctx: &BuilderContext<Node>, pool: Pool, evm_config: EvmConfig, ) -> impl Future<Output = Result<Self::PayloadBuilder, Report>> + Send
Spawns the payload service and returns the handle to it.
The BuilderContext
is provided to allow access to the node’s configuration.
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.