referrerpolicy=no-referrer-when-downgrade

Type Alias sc_chain_spec::NoExtension

source ·
pub type NoExtension = Option<()>;
Expand description

A type denoting empty extensions.

We use Option here since () is not flattenable by serde.

Aliased Type§

enum NoExtension {
    None,
    Some(()),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(())

Some value of type T.

Trait Implementations§

source§

impl Extension for NoExtension

§

type Forks = Option<()>

source§

fn get<T: 'static>(&self) -> Option<&T>

Get an extension of specific type.
source§

fn get_any(&self, _t: TypeId) -> &dyn Any

Get an extension of specific type as reference to Any.
source§

fn get_any_mut(&mut self, _: TypeId) -> &mut dyn Any

Get an extension of specific type as mutable reference to Any.
source§

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,

Get forkable extensions of specific type.