Trait hotshot_types::simple_certificate::Threshold
source · pub trait Threshold<TYPES: NodeType> {
// Required method
fn threshold<MEMBERSHIP: Membership<TYPES>>(
membership: &MEMBERSHIP,
epoch: <TYPES as NodeType>::Epoch,
) -> u64;
}
Expand description
Trait which allows use to inject different threshold calculations into a Certificate type
Required Methods§
sourcefn threshold<MEMBERSHIP: Membership<TYPES>>(
membership: &MEMBERSHIP,
epoch: <TYPES as NodeType>::Epoch,
) -> u64
fn threshold<MEMBERSHIP: Membership<TYPES>>( membership: &MEMBERSHIP, epoch: <TYPES as NodeType>::Epoch, ) -> u64
Calculate a threshold based on the membership
Object Safety§
This trait is not object safe.