Trait finality_grandpa::voter::VoterState
source · pub trait VoterState<Id: Eq + Hash> {
// Required method
fn get(&self) -> VoterState<Id>;
}
Expand description
Trait for querying the state of the voter. Used by Voter
to return a queryable object
without exposing too many data types.
Required Methods§
sourcefn get(&self) -> VoterState<Id>
fn get(&self) -> VoterState<Id>
Returns a plain data type, report::VoterState
, describing the current state
of the voter relevant to the voting process.