pub trait PayloadBuilder<State>: Send {
type PayloadBuilder: Component;
// Required method
fn build_payload(
self,
ctx: &BuilderContext<State>,
) -> impl Future<Output = Result<Self::PayloadBuilder>> + Send;
}Expand description
Builder for payload/block building components
Required Associated Types§
Sourcetype PayloadBuilder: Component
type PayloadBuilder: Component
The payload builder component type
Required Methods§
Sourcefn build_payload(
self,
ctx: &BuilderContext<State>,
) -> impl Future<Output = Result<Self::PayloadBuilder>> + Send
fn build_payload( self, ctx: &BuilderContext<State>, ) -> impl Future<Output = Result<Self::PayloadBuilder>> + Send
Build the payload builder component
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.