Trait sc_consensus_babe::CompatibleDigestItem [−][src]
A digest item which is usable with BABE consensus.
Required methods
pub fn babe_pre_digest(seal: PreDigest) -> Self
[src]
Construct a digest item which contains a BABE pre-digest.
pub fn as_babe_pre_digest(&self) -> Option<PreDigest>
[src]
If this item is an BABE pre-digest, return it.
pub fn babe_seal(signature: Signature) -> Self
[src]
Construct a digest item which contains a BABE seal.
pub fn as_babe_seal(&self) -> Option<Signature>
[src]
If this item is a BABE signature, return the signature.
pub fn as_next_epoch_descriptor(&self) -> Option<NextEpochDescriptor>
[src]
If this item is a BABE epoch descriptor, return it.
pub fn as_next_config_descriptor(&self) -> Option<NextConfigDescriptor>
[src]
If this item is a BABE config descriptor, return it.
Implementations on Foreign Types
impl<Hash> CompatibleDigestItem for DigestItem<Hash> where
Hash: Send + Sync + Eq + Clone + Codec + 'static,
[src]
Hash: Send + Sync + Eq + Clone + Codec + 'static,