Enum rhododendron::Vote [−][src]
Votes during a round.
Variants
Prepare(usize, D)
Prepare to vote for proposal with digest D.
Commit(usize, D)
Commit to proposal with digest D..
AdvanceRound(usize)
Propose advancement to a new round.
Methods
impl<D> Vote<D>
[src]
impl<D> Vote<D>
pub fn round_number(&self) -> usize
[src]
pub fn round_number(&self) -> usize
Extract the round number.
Trait Implementations
impl<D: Debug> Debug for Vote<D>
[src]
impl<D: Debug> Debug for Vote<D>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<D: Clone> Clone for Vote<D>
[src]
impl<D: Clone> Clone for Vote<D>
fn clone(&self) -> Vote<D>
[src]
fn clone(&self) -> Vote<D>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<D: PartialEq> PartialEq for Vote<D>
[src]
impl<D: PartialEq> PartialEq for Vote<D>
fn eq(&self, other: &Vote<D>) -> bool
[src]
fn eq(&self, other: &Vote<D>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Vote<D>) -> bool
[src]
fn ne(&self, other: &Vote<D>) -> bool
This method tests for !=
.
impl<D: Eq> Eq for Vote<D>
[src]
impl<D: Eq> Eq for Vote<D>
impl<C, D> From<Vote<D>> for Message<C, D>
[src]
impl<C, D> From<Vote<D>> for Message<C, D>