reth::chainspec

Trait ChainSpecProvider

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§

type ChainSpec: EthChainSpec + 'static

The chain spec type.

Required Methods§

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

Get an Arc to the chainspec.

Implementations on Foreign Types§

§

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

§

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

Implementors§

§

impl ChainSpecProvider for MockEthProvider

§

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

§

type ChainSpec = ChainSpec

§

impl<N> ChainSpecProvider for BlockchainProvider2<N>
where N: NodeTypesWithDB,

§

impl<N> ChainSpecProvider for BlockchainProvider<N>

§

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

§

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