Trait finality_grandpa::voter::VoterState
source · [−]pub trait VoterState<Id: Eq + Hash> {
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
fn 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.