pub trait ExtensionsFactory<Block: BlockT>: Send + Sync {
// Required method
fn extensions_for(
&self,
block_hash: Block::Hash,
block_number: NumberFor<Block>,
) -> Extensions;
}Expand description
Generate the starting set of Extensions.
These Extensions are passed to the environment a runtime is executed in.
Required Methods§
Sourcefn extensions_for(
&self,
block_hash: Block::Hash,
block_number: NumberFor<Block>,
) -> Extensions
fn extensions_for( &self, block_hash: Block::Hash, block_number: NumberFor<Block>, ) -> Extensions
Create Extensions for the given input.
block_hash: The hash of the block in the context that extensions will be used.block_number: The number of the block in the context that extensions will be used.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".