Trait hotshot_types::simple_vote::HasEpoch

source ·
pub trait HasEpoch<TYPES: NodeType> {
    // Required method
    fn epoch(&self) -> TYPES::Epoch;
}
Expand description

A trait for types belonging for specific epoch

Required Methods§

source

fn epoch(&self) -> TYPES::Epoch

Returns Epoch

Implementors§

source§

impl<TYPES: NodeType> HasEpoch<TYPES> for DaProposal2<TYPES>

source§

impl<TYPES: NodeType> HasEpoch<TYPES> for VidDisperse<TYPES>

source§

impl<TYPES: NodeType> HasEpoch<TYPES> for VidDisperseShare2<TYPES>

source§

impl<TYPES: NodeType> HasEpoch<TYPES> for DaData2<TYPES>

source§

impl<TYPES: NodeType> HasEpoch<TYPES> for NextEpochQuorumData2<TYPES>

source§

impl<TYPES: NodeType> HasEpoch<TYPES> for QuorumData2<TYPES>

source§

impl<TYPES: NodeType> HasEpoch<TYPES> for TimeoutData2<TYPES>

source§

impl<TYPES: NodeType> HasEpoch<TYPES> for ViewSyncCommitData2<TYPES>

source§

impl<TYPES: NodeType> HasEpoch<TYPES> for ViewSyncFinalizeData2<TYPES>

source§

impl<TYPES: NodeType> HasEpoch<TYPES> for ViewSyncPreCommitData2<TYPES>

source§

impl<TYPES: NodeType, DATA: Voteable<TYPES> + HasEpoch<TYPES>> HasEpoch<TYPES> for SimpleVote<TYPES, DATA>