[][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
[src]

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

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

impl<BlockNumber, T> Unpin for Forks<BlockNumber, T> where
    T: Unpin
[src]

impl<BlockNumber, T> UnwindSafe for Forks<BlockNumber, T> where
    BlockNumber: RefUnwindSafe,
    T: UnwindSafe,
    <T as Group>::Fork: RefUnwindSafe
[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

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

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

Get a reference to the inner from the outer.

pub 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
[src]

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T[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
    T: Bounded,
    S: TryInto<T>, 
[src]

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

impl<T> WithSubscriber for T[src]