reth_chainspec

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§