Trait reth_chainspec::ChainSpecProvider

source ·
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§

source

type ChainSpec: EthChainSpec

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§