Trait sc_chain_spec::Extension [−][src]
A collection of ChainSpec extensions.
This type can be passed around and allows the core modules to request a strongly-typed, but optional configuration.
Associated Types
Loading content...Required methods
fn get<T: 'static>(&self) -> Option<&T>[src]
Get an extension of specific type.
fn get_any(&self, t: TypeId) -> &dyn Any[src]
Get an extension of specific type as refernce to Any
Provided methods
fn forks<BlockNumber, T>(&self) -> Option<Forks<BlockNumber, T>> where
    BlockNumber: Ord + Clone + 'static,
    T: Group + 'static,
    <Self::Forks as IsForks>::Extension: Extension,
    <<Self::Forks as IsForks>::Extension as Group>::Fork: Extension, [src]
BlockNumber: Ord + Clone + 'static,
T: Group + 'static,
<Self::Forks as IsForks>::Extension: Extension,
<<Self::Forks as IsForks>::Extension as Group>::Fork: Extension,
Get forkable extensions of specific type.
Implementors
impl Extension for NoExtension[src]
type Forks = Self
fn get<T: 'static>(&self) -> Option<&T>[src]
fn get_any(&self, _t: TypeId) -> &dyn Any[src]
impl<B, E> Extension for Forks<B, E> where
    B: Serialize + DeserializeOwned + Ord + Clone + 'static,
    E: Extension + Group + 'static, [src]
B: Serialize + DeserializeOwned + Ord + Clone + 'static,
E: Extension + Group + 'static,
type Forks = Self
fn get<T: 'static>(&self) -> Option<&T>[src]
fn get_any(&self, t: TypeId) -> &dyn Any[src]
fn forks<BlockNumber, T>(&self) -> Option<Forks<BlockNumber, T>> where
    BlockNumber: Ord + Clone + 'static,
    T: Group + 'static,
    <Self::Forks as IsForks>::Extension: Extension,
    <<Self::Forks as IsForks>::Extension as Group>::Fork: Extension, [src]
BlockNumber: Ord + Clone + 'static,
T: Group + 'static,
<Self::Forks as IsForks>::Extension: Extension,
<<Self::Forks as IsForks>::Extension as Group>::Fork: Extension,