pub struct RoundParams<Id: Ord + Eq, H, N> {
pub round_number: u64,
pub voters: VoterSet<Id>,
pub base: (H, N),
}
Expand description
Parameters for starting a round.
Fields§
§round_number: u64
The round number for votes.
voters: VoterSet<Id>
Actors and weights in the round.
base: (H, N)
The base block to build on.
Auto Trait Implementations§
impl<Id, H, N> Freeze for RoundParams<Id, H, N>
impl<Id, H, N> RefUnwindSafe for RoundParams<Id, H, N>
impl<Id, H, N> Send for RoundParams<Id, H, N>
impl<Id, H, N> Sync for RoundParams<Id, H, N>
impl<Id, H, N> Unpin for RoundParams<Id, H, N>
impl<Id, H, N> UnwindSafe for RoundParams<Id, H, N>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more