Enum rhododendron::Vote[][src]

pub enum Vote<D> {
    Prepare(usize, D),
    Commit(usize, D),
    AdvanceRound(usize),
}

Votes during a round.

Variants

Prepare to vote for proposal with digest D.

Commit to proposal with digest D..

Propose advancement to a new round.

Methods

impl<D> Vote<D>
[src]

Extract the round number.

Trait Implementations

impl<D: Debug> Debug for Vote<D>
[src]

Formats the value using the given formatter. Read more

impl<D: Clone> Clone for Vote<D>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<D: PartialEq> PartialEq for Vote<D>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<D: Eq> Eq for Vote<D>
[src]

impl<C, D> From<Vote<D>> for Message<C, D>
[src]

Performs the conversion.

Auto Trait Implementations

impl<D> Send for Vote<D> where
    D: Send

impl<D> Sync for Vote<D> where
    D: Sync