Trait ChainSpecProvider
pub trait ChainSpecProvider:
Debug
+ 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
type ChainSpec: EthChainSpec + 'static
The chain spec type.
Required Methods§
fn chain_spec(&self) -> Arc<Self::ChainSpec>
fn chain_spec(&self) -> Arc<Self::ChainSpec>
Get an Arc
to the chainspec.
Implementations on Foreign Types§
§impl<'a, T> ChainSpecProvider for &'a T
impl<'a, T> ChainSpecProvider for &'a T
type ChainSpec = <T as ChainSpecProvider>::ChainSpec
fn chain_spec(&self) -> Arc<<&'a T as ChainSpecProvider>::ChainSpec>
§impl<T> ChainSpecProvider for Arc<T>
impl<T> ChainSpecProvider for Arc<T>
type ChainSpec = <T as ChainSpecProvider>::ChainSpec
fn chain_spec(&self) -> Arc<<Arc<T> as ChainSpecProvider>::ChainSpec>
Implementors§
§impl<ChainSpec, N> ChainSpecProvider for NoopProvider<ChainSpec, N>
impl<ChainSpec, N> ChainSpecProvider for NoopProvider<ChainSpec, N>
Source§impl<N: NodeTypesWithDB> ChainSpecProvider for BlockchainProvider<N>
impl<N: NodeTypesWithDB> ChainSpecProvider for BlockchainProvider<N>
Source§impl<N: NodeTypesWithDB> ChainSpecProvider for ProviderFactory<N>
impl<N: NodeTypesWithDB> ChainSpecProvider for ProviderFactory<N>
Source§impl<T, ChainSpec> ChainSpecProvider for MockEthProvider<T, ChainSpec>
Available on crate feature test-utils
only.
impl<T, ChainSpec> ChainSpecProvider for MockEthProvider<T, ChainSpec>
Available on crate feature
test-utils
only.