Enum sc_consensus_epochs::ViableEpochDescriptor [−][src]
pub enum ViableEpochDescriptor<Hash, Number, E: Epoch> { UnimportedGenesis(E::Slot), Signaled(EpochIdentifier<Hash, Number>, EpochHeader<E>), }
Descriptor for a viable epoch.
Variants
UnimportedGenesis(E::Slot)
The epoch is an unimported genesis, with given start slot number.
Signaled(EpochIdentifier<Hash, Number>, EpochHeader<E>)
The epoch is signaled and has been imported, with given identifier and header.
Implementations
impl<Hash, Number, E: Epoch> ViableEpochDescriptor<Hash, Number, E>
[src]
impl<Hash, Number, E: Epoch> ViableEpochDescriptor<Hash, Number, E>
[src]pub fn start_slot(&self) -> E::Slot
[src]
Start slot of the descriptor.
Trait Implementations
impl<Hash: Clone, Number: Clone, E: Clone + Epoch> Clone for ViableEpochDescriptor<Hash, Number, E> where
E::Slot: Clone,
[src]
impl<Hash: Clone, Number: Clone, E: Clone + Epoch> Clone for ViableEpochDescriptor<Hash, Number, E> where
E::Slot: Clone,
[src]fn clone(&self) -> ViableEpochDescriptor<Hash, Number, E>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Hash: Debug, Number: Debug, E: Debug + Epoch> Debug for ViableEpochDescriptor<Hash, Number, E> where
E::Slot: Debug,
[src]
impl<Hash: Debug, Number: Debug, E: Debug + Epoch> Debug for ViableEpochDescriptor<Hash, Number, E> where
E::Slot: Debug,
[src]impl<Hash: PartialEq, Number: PartialEq, E: PartialEq + Epoch> PartialEq<ViableEpochDescriptor<Hash, Number, E>> for ViableEpochDescriptor<Hash, Number, E> where
E::Slot: PartialEq,
[src]
impl<Hash: PartialEq, Number: PartialEq, E: PartialEq + Epoch> PartialEq<ViableEpochDescriptor<Hash, Number, E>> for ViableEpochDescriptor<Hash, Number, E> where
E::Slot: PartialEq,
[src]fn eq(&self, other: &ViableEpochDescriptor<Hash, Number, E>) -> bool
[src]
fn ne(&self, other: &ViableEpochDescriptor<Hash, Number, E>) -> bool
[src]
impl<Hash: Eq, Number: Eq, E: Eq + Epoch> Eq for ViableEpochDescriptor<Hash, Number, E> where
E::Slot: Eq,
[src]
E::Slot: Eq,
impl<Hash, Number, E: Epoch> StructuralEq for ViableEpochDescriptor<Hash, Number, E>
[src]
impl<Hash, Number, E: Epoch> StructuralPartialEq for ViableEpochDescriptor<Hash, Number, E>
[src]
Auto Trait Implementations
impl<Hash, Number, E> RefUnwindSafe for ViableEpochDescriptor<Hash, Number, E> where
Hash: RefUnwindSafe,
Number: RefUnwindSafe,
<E as Epoch>::Slot: RefUnwindSafe,
Hash: RefUnwindSafe,
Number: RefUnwindSafe,
<E as Epoch>::Slot: RefUnwindSafe,
impl<Hash, Number, E> Send for ViableEpochDescriptor<Hash, Number, E> where
Hash: Send,
Number: Send,
<E as Epoch>::Slot: Send,
Hash: Send,
Number: Send,
<E as Epoch>::Slot: Send,
impl<Hash, Number, E> Sync for ViableEpochDescriptor<Hash, Number, E> where
Hash: Sync,
Number: Sync,
<E as Epoch>::Slot: Sync,
Hash: Sync,
Number: Sync,
<E as Epoch>::Slot: Sync,
impl<Hash, Number, E> Unpin for ViableEpochDescriptor<Hash, Number, E> where
Hash: Unpin,
Number: Unpin,
<E as Epoch>::Slot: Unpin,
Hash: Unpin,
Number: Unpin,
<E as Epoch>::Slot: Unpin,
impl<Hash, Number, E> UnwindSafe for ViableEpochDescriptor<Hash, Number, E> where
Hash: UnwindSafe,
Number: UnwindSafe,
<E as Epoch>::Slot: UnwindSafe,
Hash: UnwindSafe,
Number: UnwindSafe,
<E as Epoch>::Slot: 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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[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<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Member for T where
T: 'static + Send + Sync + Debug + Eq + PartialEq<T> + Clone,
[src]
T: 'static + Send + Sync + Debug + Eq + PartialEq<T> + Clone,