[][src]Trait sp_consensus_babe::digests::CompatibleDigestItem

pub trait CompatibleDigestItem: Sized {
    fn babe_pre_digest(seal: PreDigest) -> Self;
fn as_babe_pre_digest(&self) -> Option<PreDigest>;
fn babe_seal(signature: AuthoritySignature) -> Self;
fn as_babe_seal(&self) -> Option<AuthoritySignature>;
fn as_next_epoch_descriptor(&self) -> Option<NextEpochDescriptor>; }

A digest item which is usable with BABE consensus.

Required methods

fn babe_pre_digest(seal: PreDigest) -> Self

Construct a digest item which contains a BABE pre-digest.

fn as_babe_pre_digest(&self) -> Option<PreDigest>

If this item is an BABE pre-digest, return it.

fn babe_seal(signature: AuthoritySignature) -> Self

Construct a digest item which contains a BABE seal.

fn as_babe_seal(&self) -> Option<AuthoritySignature>

If this item is a BABE signature, return the signature.

fn as_next_epoch_descriptor(&self) -> Option<NextEpochDescriptor>

If this item is a BABE epoch, return it.

Loading content...

Implementations on Foreign Types

impl<Hash> CompatibleDigestItem for DigestItem<Hash> where
    Hash: Debug + Send + Sync + Eq + Clone + Codec + 'static, 
[src]

Loading content...

Implementors

Loading content...