pub struct RoundRobinProposerSelector;Expand description
A default proposer selector that uses round-robin selection.
This is the default proposer selection algorithm that selects proposers in a round-robin fashion based on the round number modulo the number of validators.
Trait Implementations§
Source§impl Clone for RoundRobinProposerSelector
impl Clone for RoundRobinProposerSelector
Source§fn clone(&self) -> RoundRobinProposerSelector
fn clone(&self) -> RoundRobinProposerSelector
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for RoundRobinProposerSelector
impl Default for RoundRobinProposerSelector
Source§fn default() -> RoundRobinProposerSelector
fn default() -> RoundRobinProposerSelector
Returns the “default value” for a type. Read more
Source§impl<A: ValidatorAddress> ProposerSelector<A> for RoundRobinProposerSelector
impl<A: ValidatorAddress> ProposerSelector<A> for RoundRobinProposerSelector
Source§fn select_proposer<'a>(
&self,
validator_set: &'a ValidatorSet<A>,
_height: u64,
round: u32,
) -> &'a Validator<A>
fn select_proposer<'a>( &self, validator_set: &'a ValidatorSet<A>, _height: u64, round: u32, ) -> &'a Validator<A>
Select the proposer for the given height and round. Read more
Auto Trait Implementations§
impl Freeze for RoundRobinProposerSelector
impl RefUnwindSafe for RoundRobinProposerSelector
impl Send for RoundRobinProposerSelector
impl Sync for RoundRobinProposerSelector
impl Unpin for RoundRobinProposerSelector
impl UnwindSafe for RoundRobinProposerSelector
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