Trait Threshold

Source
pub trait Threshold<TYPES: NodeType> {
    // Required method
    fn threshold(
        membership: &EpochMembership<TYPES>,
    ) -> impl Future<Output = U256> + Send;
}
Expand description

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

Required Methods§

Source

fn threshold( membership: &EpochMembership<TYPES>, ) -> impl Future<Output = U256> + Send

Calculate a threshold based on the membership

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§