Trait polkadot_service::HeaderProviderProvider

source ·
pub trait HeaderProviderProvider<Block>: Send + Sync + 'static
where Block: BlockT,
{ type Provider: HeaderProvider<Block> + 'static; // Required method fn header_provider(&self) -> &Self::Provider; }
Expand description

Decoupling the provider.

Mandated since trait HeaderProvider can only be implemented once for a generic T.

Required Associated Types§

source

type Provider: HeaderProvider<Block> + 'static

Required Methods§

source

fn header_provider(&self) -> &Self::Provider

Implementors§

source§

impl<Block, T> HeaderProviderProvider<Block> for T
where Block: BlockT, T: Backend<Block> + 'static,

§

type Provider = <T as Backend<Block>>::Blockchain