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

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>;
fn as_next_config_descriptor(&self) -> Option<NextConfigDescriptor>; }
Expand description

A digest item which is usable with BABE consensus.

Required methods

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

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

Construct a digest item which contains a BABE seal.

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

If this item is a BABE epoch descriptor, return it.

If this item is a BABE config descriptor, return it.

Implementations on Foreign Types

Implementors