[][src]Trait sp_session::GetValidatorCount

pub trait GetValidatorCount {
    pub fn validator_count(&self) -> ValidatorCount;

A utility trait to get the validator count of a given session. This is implemented for MembershipProof below and fetches the number of validators in the session the membership proof is for. It is useful when we need to deal with key owner proofs generically (i.e. just typing against the KeyOwnerProofSystem trait) but still restrict their capabilities.

Required methods

pub fn validator_count(&self) -> ValidatorCount[src]

Loading content...

Implementations on Foreign Types

impl GetValidatorCount for Void[src]

Loading content...


impl GetValidatorCount for MembershipProof[src]

Loading content...