pub trait BlockAssembler<F: BlockExecutorFactory> {
type Block: Block;
// Required method
fn assemble_block(
&self,
input: BlockAssemblerInput<'_, '_, F, <Self::Block as Block>::Header>,
) -> Result<Self::Block, BlockExecutionError>;
}Expand description
A type that assembles a block from execution output.
Required Associated Types§
Required Methods§
Sourcefn assemble_block(
&self,
input: BlockAssemblerInput<'_, '_, F, <Self::Block as Block>::Header>,
) -> Result<Self::Block, BlockExecutionError>
fn assemble_block( &self, input: BlockAssemblerInput<'_, '_, F, <Self::Block as Block>::Header>, ) -> Result<Self::Block, BlockExecutionError>
Builds a block. see BlockAssemblerInput documentation for more details.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".