pub trait CreateInherentDataProviders<Block: BlockT, ExtraArgs>: Send + Sync {
    type InherentDataProviders: InherentDataProvider;

    fn create_inherent_data_providers<'life0, 'async_trait>(
        &'life0 self,
        parent: Block::Hash,
        extra_args: ExtraArgs
    ) -> Pin<Box<dyn Future<Output = Result<Self::InherentDataProviders, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; }
Expand description

Something that can create inherent data providers.

It is possible for the caller to provide custom arguments to the callee by setting the ExtraArgs generic parameter.

The crate already provides some convience implementations of this trait for Box<dyn CreateInherentDataProviders> and closures. So, it should not be required to implement this trait manually.

Required Associated Types§

The inherent data providers that will be created.

Required Methods§

Create the inherent data providers at the given parent block using the given extra_args.

Trait Implementations§

The inherent data providers that will be created.
Create the inherent data providers at the given parent block using the given extra_args.

Implementations on Foreign Types§

Implementors§