[][src]Struct sc_chain_spec::Forks

pub struct Forks<BlockNumber: Ord, T: Group> { /* fields omitted */ }

Implementations

impl<B: Ord, T: Group> Forks<B, T> where
    T::Fork: Debug
[src]

pub fn new(base: T, forks: BTreeMap<B, T::Fork>) -> Self[src]

Create new fork definition given the base and the forks.

pub fn at_block(&self, block: B) -> T[src]

Return a set of parameters for Group including all forks up to block (inclusive).

impl<B: Ord + Clone, T: Group + Extension> Forks<B, T> where
    T::Fork: Extension
[src]

pub fn for_type<X>(&self) -> Option<Forks<B, X>> where
    X: Group + 'static, 
[src]

Get forks definition for a subset of this extension.

Returns the Forks struct, but limited to a particular type within the extension.

Trait Implementations

impl<BlockNumber: Clone + Ord, T: Clone + Group> Clone for Forks<BlockNumber, T> where
    T::Fork: Clone
[src]

impl<BlockNumber: Debug + Ord, T: Debug + Group> Debug for Forks<BlockNumber, T> where
    T::Fork: Debug
[src]

impl<B: Ord, T: Group + Default> Default for Forks<B, T>[src]

impl<'de, BlockNumber: Ord, T: Group> Deserialize<'de> for Forks<BlockNumber, T> where
    BlockNumber: Deserialize<'de>,
    T: Deserialize<'de>, 
[src]

impl<B, E> Extension for Forks<B, E> where
    B: Serialize + DeserializeOwned + Ord + Clone + 'static,
    E: Extension + Group + 'static, 
[src]

type Forks = Self

impl<BlockNumber: PartialEq + Ord, T: PartialEq + Group> PartialEq<Forks<BlockNumber, T>> for Forks<BlockNumber, T> where
    T::Fork: PartialEq
[src]

impl<BlockNumber: Ord, T: Group> Serialize for Forks<BlockNumber, T> where
    BlockNumber: Serialize,
    T: Serialize
[src]

impl<BlockNumber: Ord, T: Group> StructuralPartialEq for Forks<BlockNumber, T>[src]

Auto Trait Implementations

impl<BlockNumber, T> RefUnwindSafe for Forks<BlockNumber, T> where
    BlockNumber: RefUnwindSafe,
    T: RefUnwindSafe,
    <T as Group>::Fork: RefUnwindSafe

impl<BlockNumber, T> Send for Forks<BlockNumber, T> where
    BlockNumber: Send,
    T: Send,
    <T as Group>::Fork: Send

impl<BlockNumber, T> Sync for Forks<BlockNumber, T> where
    BlockNumber: Sync,
    T: Sync,
    <T as Group>::Fork: Sync

impl<BlockNumber, T> Unpin for Forks<BlockNumber, T> where
    BlockNumber: Unpin,
    T: Unpin,
    <T as Group>::Fork: Unpin

impl<BlockNumber, T> UnwindSafe for Forks<BlockNumber, T> where
    BlockNumber: RefUnwindSafe + UnwindSafe,
    T: UnwindSafe,
    <T as Group>::Fork: RefUnwindSafe + UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedConversion for T[src]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    Outer: AsRef<T> + AsMut<T> + From<T>,
    T: From<Outer>, 
[src]

fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> MaybeSerialize for T where
    T: Serialize
[src]

impl<T> MaybeSerializeDeserialize for T where
    T: DeserializeOwned + Serialize
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    S: TryInto<T>,
    T: Bounded

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,