[][src]Struct finality_grandpa::voter::RoundData

pub struct RoundData<Id, Timer, Input, Output> {
    pub voter_id: Option<Id>,
    pub prevote_timer: Timer,
    pub precommit_timer: Timer,
    pub incoming: Input,
    pub outgoing: Output,
}

Data necessary to participate in a round.

Fields

voter_id: Option<Id>

Local voter id (if any.)

prevote_timer: Timer

Timer before prevotes can be cast. This should be Start + 2T where T is the gossip time estimate.

precommit_timer: Timer

Timer before precommits can be cast. This should be Start + 4T

incoming: Input

Incoming messages.

outgoing: Output

Outgoing messages.

Auto Trait Implementations

impl<Id, Timer, Input, Output> Send for RoundData<Id, Timer, Input, Output> where
    Id: Send,
    Input: Send,
    Output: Send,
    Timer: Send

impl<Id, Timer, Input, Output> Sync for RoundData<Id, Timer, Input, Output> where
    Id: Sync,
    Input: Sync,
    Output: Sync,
    Timer: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T