Struct exonum::node::state::ValidatorState
[−]
[src]
pub struct ValidatorState { /* fields omitted */ }
State of a validator-node.
Methods
impl ValidatorState
[src]
fn new(id: ValidatorId) -> Self
[src]
Creates new ValidatorState
with given validator id.
fn id(&self) -> ValidatorId
[src]
Returns validator id.
fn set_validator_id(&mut self, id: ValidatorId)
[src]
Sets new validator id.
fn have_prevote(&self, round: Round) -> bool
[src]
Checks if the node has pre-vote for the specified round.
fn clear(&mut self)
[src]
Clears pre-commits and pre-votes.
Trait Implementations
impl Debug for ValidatorState
[src]
impl Clone for ValidatorState
[src]
fn clone(&self) -> ValidatorState
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more