Trait hotshot_types::vote::HasViewNumber

source ·
pub trait HasViewNumber<TYPES: NodeType> {
    // Required method
    fn view_number(&self) -> TYPES::View;
}
Expand description

Any type that is associated with a view

Required Methods§

source

fn view_number(&self) -> TYPES::View

Returns the view number the type refers to.

Implementors§

source§

impl<TYPES: NodeType> HasViewNumber<TYPES> for DaProposal<TYPES>

source§

impl<TYPES: NodeType> HasViewNumber<TYPES> for QuorumProposal2<TYPES>

source§

impl<TYPES: NodeType> HasViewNumber<TYPES> for QuorumProposal<TYPES>

source§

impl<TYPES: NodeType> HasViewNumber<TYPES> for UpgradeProposal<TYPES>

source§

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

source§

impl<TYPES: NodeType> HasViewNumber<TYPES> for VidDisperseShare<TYPES>

source§

impl<TYPES: NodeType> HasViewNumber<TYPES> for Message<TYPES>

source§

impl<TYPES: NodeType, DATA: Voteable + 'static> HasViewNumber<TYPES> for SimpleVote<TYPES, DATA>

source§

impl<TYPES: NodeType, VOTEABLE: Voteable + 'static, THRESHOLD: Threshold<TYPES>> HasViewNumber<TYPES> for SimpleCertificate<TYPES, VOTEABLE, THRESHOLD>