Struct sc_consensus_epochs::migration::EpochChangesV0 [−][src]
pub struct EpochChangesV0<Hash, Number, E: Epoch> { /* fields omitted */ }
Legacy definition of epoch changes.
Implementations
impl<Hash, Number, E: Epoch> EpochChangesV0<Hash, Number, E> where
Hash: PartialEq + Ord + Copy,
Number: Ord + Copy,
[src]
impl<Hash, Number, E: Epoch> EpochChangesV0<Hash, Number, E> where
Hash: PartialEq + Ord + Copy,
Number: Ord + Copy,
[src]pub fn from_raw(inner: ForkTree<Hash, Number, PersistedEpoch<E>>) -> Self
[src]
Create a new value of this type from raw.
pub fn migrate(self) -> EpochChanges<Hash, Number, E>
[src]
Migrate the type into current epoch changes definition.
Trait Implementations
impl<Hash: Clone, Number: Clone, E: Clone + Epoch> Clone for EpochChangesV0<Hash, Number, E>
[src]
impl<Hash: Clone, Number: Clone, E: Clone + Epoch> Clone for EpochChangesV0<Hash, Number, E>
[src]fn clone(&self) -> EpochChangesV0<Hash, Number, E>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Hash, Number, E: Epoch> Decode for EpochChangesV0<Hash, Number, E> where
ForkTree<Hash, Number, PersistedEpoch<E>>: Decode,
ForkTree<Hash, Number, PersistedEpoch<E>>: Decode,
[src]
impl<Hash, Number, E: Epoch> Decode for EpochChangesV0<Hash, Number, E> where
ForkTree<Hash, Number, PersistedEpoch<E>>: Decode,
ForkTree<Hash, Number, PersistedEpoch<E>>: Decode,
[src]impl<Hash, Number, E: Epoch> Encode for EpochChangesV0<Hash, Number, E> where
ForkTree<Hash, Number, PersistedEpoch<E>>: Encode,
ForkTree<Hash, Number, PersistedEpoch<E>>: Encode,
[src]
impl<Hash, Number, E: Epoch> Encode for EpochChangesV0<Hash, Number, E> where
ForkTree<Hash, Number, PersistedEpoch<E>>: Encode,
ForkTree<Hash, Number, PersistedEpoch<E>>: Encode,
[src]impl<Hash, Number, E: Epoch> EncodeLike<EpochChangesV0<Hash, Number, E>> for EpochChangesV0<Hash, Number, E> where
ForkTree<Hash, Number, PersistedEpoch<E>>: Encode,
ForkTree<Hash, Number, PersistedEpoch<E>>: Encode,
[src]
ForkTree<Hash, Number, PersistedEpoch<E>>: Encode,
ForkTree<Hash, Number, PersistedEpoch<E>>: Encode,
Auto Trait Implementations
impl<Hash, Number, E> RefUnwindSafe for EpochChangesV0<Hash, Number, E> where
E: RefUnwindSafe,
Hash: RefUnwindSafe,
Number: RefUnwindSafe,
E: RefUnwindSafe,
Hash: RefUnwindSafe,
Number: RefUnwindSafe,
impl<Hash, Number, E> Send for EpochChangesV0<Hash, Number, E> where
E: Send,
Hash: Send,
Number: Send,
E: Send,
Hash: Send,
Number: Send,
impl<Hash, Number, E> Sync for EpochChangesV0<Hash, Number, E> where
E: Sync,
Hash: Sync,
Number: Sync,
E: Sync,
Hash: Sync,
Number: Sync,
impl<Hash, Number, E> Unpin for EpochChangesV0<Hash, Number, E> where
E: Unpin,
Hash: Unpin,
Number: Unpin,
E: Unpin,
Hash: Unpin,
Number: Unpin,
impl<Hash, Number, E> UnwindSafe for EpochChangesV0<Hash, Number, E> where
E: UnwindSafe,
Hash: UnwindSafe,
Number: UnwindSafe,
E: UnwindSafe,
Hash: UnwindSafe,
Number: UnwindSafe,
Blanket Implementations
impl<T> CheckedConversion for T
[src]
impl<T> CheckedConversion for T
[src]pub fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
[src]
Self: TryFrom<T>,
pub fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
[src]
Self: TryInto<T>,
impl<T> DecodeLimit for T where
T: Decode,
[src]
impl<T> DecodeLimit for T where
T: Decode,
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
[src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
[src]impl<T> SaturatedConversion for T
[src]
impl<T> SaturatedConversion for T
[src]pub fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
[src]
Self: UniqueSaturatedFrom<T>,
pub fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
[src]
Self: UniqueSaturatedInto<T>,
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]pub fn unchecked_into(self) -> T
[src]
impl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
[src]
impl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
[src]pub fn unique_saturated_into(self) -> T
[src]
impl<T> WithSubscriber for T
[src]
impl<T> WithSubscriber for T
[src]pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,
pub fn with_current_subscriber(self) -> WithDispatch<Self>
[src]
impl<S> Codec for S where
S: Decode + Encode,
[src]
S: Decode + Encode,
impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
T: Encode,
[src]
T: Encode,
impl<'_, T> EncodeLike<&'_ T> for T where
T: Encode,
[src]
T: Encode,
impl<'_, T> EncodeLike<&'_ mut T> for T where
T: Encode,
[src]
T: Encode,
impl<T> EncodeLike<Arc<T>> for T where
T: Encode,
[src]
T: Encode,
impl<T> EncodeLike<Box<T, Global>> for T where
T: Encode,
[src]
T: Encode,
impl<'a, T> EncodeLike<Cow<'a, T>> for T where
T: ToOwned + Encode,
[src]
T: ToOwned + Encode,
impl<T> EncodeLike<Rc<T>> for T where
T: Encode,
[src]
T: Encode,
impl<S> FullCodec for S where
S: Decode + FullEncode,
[src]
S: Decode + FullEncode,
impl<S> FullEncode for S where
S: Encode + EncodeLike<S>,
[src]
S: Encode + EncodeLike<S>,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,