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,
}
Expand description

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> RefUnwindSafe for RoundData<Id, Timer, Input, Output>where Id: RefUnwindSafe, Input: RefUnwindSafe, Output: RefUnwindSafe, Timer: RefUnwindSafe,

§

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,

§

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

§

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

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.