Trait ChainSpecProvider

Source
pub trait ChainSpecProvider: Send + Sync {
    type ChainSpec: EthChainSpec + 'static;

    // Required method
    fn chain_spec(&self) -> Arc<Self::ChainSpec>;
}
Expand description

A trait for reading the current chainspec.

Required Associated Types§

Source

type ChainSpec: EthChainSpec + 'static

The chain spec type.

Required Methods§

Source

fn chain_spec(&self) -> Arc<Self::ChainSpec>

Get an Arc to the chainspec.

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + ChainSpecProvider + ?Sized> ChainSpecProvider for &'a T
where &'a T: Send + Sync,

Source§

impl<T: ChainSpecProvider + ?Sized> ChainSpecProvider for Arc<T>
where Arc<T>: Send + Sync,

Implementors§

impl<N: NodeTypesWithDB> ChainSpecProvider for BlockchainProvider<N>

impl<N: NodeTypesWithDB> ChainSpecProvider for ProviderFactory<N>

impl<T: Transaction, ChainSpec: EthChainSpec + 'static> ChainSpecProvider for MockEthProvider<T, ChainSpec>

impl<TX: Send + Sync, N: NodeTypes<ChainSpec: EthChainSpec + 'static>> ChainSpecProvider for DatabaseProvider<TX, N>

impl<ChainSpec: EthChainSpec + 'static, N: Send + Sync + 'static> ChainSpecProvider for NoopProvider<ChainSpec, N>