pub trait Threshold<TYPES: NodeType> {
    // Required method
    fn threshold<MEMBERSHIP: Membership<TYPES>>(membership: &MEMBERSHIP) -> u64;
}
Expand description

Trait which allows use to inject different threshold calculations into a Certificate type

Required Methods§

source

fn threshold<MEMBERSHIP: Membership<TYPES>>(membership: &MEMBERSHIP) -> u64

Calculate a threshold based on the membership

Object Safety§

This trait is not object safe.

Implementors§