Trait sc_service::ChainSpecExtension [−][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
pub fn get<T>(&self) -> Option<&T> where
T: 'static,
[src]
T: 'static,
Get an extension of specific type.
pub fn get_any(&self, t: TypeId) -> &(dyn Any + 'static)
[src]
Get an extension of specific type as refernce to Any
Provided methods
pub fn forks<BlockNumber, T>(&self) -> Option<Forks<BlockNumber, T>> where
T: Group + 'static,
BlockNumber: Ord + Clone + 'static,
<Self::Forks as IsForks>::Extension: Extension,
<<Self::Forks as IsForks>::Extension as Group>::Fork: Extension,
[src]
T: Group + 'static,
BlockNumber: Ord + Clone + 'static,
<Self::Forks as IsForks>::Extension: Extension,
<<Self::Forks as IsForks>::Extension as Group>::Fork: Extension,
Get forkable extensions of specific type.
Implementations on Foreign Types
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 = Forks<B, E>
pub fn get<T>(&self) -> Option<&T> where
T: 'static,
[src]
T: 'static,
pub fn get_any(&self, t: TypeId) -> &(dyn Any + 'static)
[src]
pub fn forks<BlockNumber, T>(&self) -> Option<Forks<BlockNumber, T>> where
T: Group + 'static,
BlockNumber: Ord + Clone + 'static,
<<Forks<B, E> as Extension>::Forks as IsForks>::Extension: Extension,
<<<Forks<B, E> as Extension>::Forks as IsForks>::Extension as Group>::Fork: Extension,
[src]
T: Group + 'static,
BlockNumber: Ord + Clone + 'static,
<<Forks<B, E> as Extension>::Forks as IsForks>::Extension: Extension,
<<<Forks<B, E> as Extension>::Forks as IsForks>::Extension as Group>::Fork: Extension,
impl Extension for Option<()>
[src]
type Forks = Option<()>
pub fn get<T>(&self) -> Option<&T> where
T: 'static,
[src]
T: 'static,