Trait reth_provider::ChainSpecProvider

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

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

A trait for reading the current [ChainSpec].

Required Associated Types§

type ChainSpec: EthChainSpec

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§

source§

impl ChainSpecProvider for MockEthProvider

Available on crate feature test-utils only.
source§

type ChainSpec = ChainSpec

source§

impl ChainSpecProvider for NoopProvider

Available on crate feature test-utils only.
source§

type ChainSpec = ChainSpec

source§

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

source§

type ChainSpec = <N as NodeTypes>::ChainSpec

source§

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

source§

type ChainSpec = <N as NodeTypes>::ChainSpec

source§

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

source§

type ChainSpec = <N as NodeTypes>::ChainSpec