pub trait PayloadBuilderBuilder<Node: FullNodeTypes, Pool: TransactionPool>: Send + Sized {
type PayloadBuilder: PayloadBuilderFor<Node::Types> + Unpin + 'static;
// Required method
fn build_payload_builder(
self,
ctx: &BuilderContext<Node>,
pool: Pool,
) -> impl Future<Output = Result<Self::PayloadBuilder>> + Send;
}
Expand description
A type that knows how to build a payload builder to plug into BasicPayloadServiceBuilder
.
Required Associated Types§
Sourcetype PayloadBuilder: PayloadBuilderFor<Node::Types> + Unpin + 'static
type PayloadBuilder: PayloadBuilderFor<Node::Types> + Unpin + 'static
Payload builder implementation.
Required Methods§
Sourcefn build_payload_builder(
self,
ctx: &BuilderContext<Node>,
pool: Pool,
) -> impl Future<Output = Result<Self::PayloadBuilder>> + Send
fn build_payload_builder( self, ctx: &BuilderContext<Node>, pool: Pool, ) -> impl Future<Output = Result<Self::PayloadBuilder>> + 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.