reth_payload_primitives

Trait PayloadAttributesBuilder

source
pub trait PayloadAttributesBuilder:
    Debug
    + Send
    + Sync
    + 'static {
    type PayloadAttributes: PayloadAttributes;
    type Error: Error + Send + Sync;

    // Required method
    fn build(&self) -> Result<Self::PayloadAttributes, Self::Error>;
}
Expand description

A builder that can return the current payload attribute.

Required Associated Types§

source

type PayloadAttributes: PayloadAttributes

The payload attributes type returned by the builder.

source

type Error: Error + Send + Sync

The error type returned by PayloadAttributesBuilder::build.

Required Methods§

source

fn build(&self) -> Result<Self::PayloadAttributes, Self::Error>

Return a new payload attribute from the builder.

Implementors§