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
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§
Source§impl ChainSpecProvider for MockEthProvider
Available on crate feature test-utils
only.
impl ChainSpecProvider for MockEthProvider
Available on crate feature
test-utils
only.Source§impl ChainSpecProvider for NoopProvider
Available on crate feature test-utils
only.
impl ChainSpecProvider for NoopProvider
Available on crate feature
test-utils
only.