pub struct RoundRobin { /* private fields */ }Expand description
Simple round-robin: cycles through candidates sequentially.
Implementations§
Source§impl RoundRobin
impl RoundRobin
Trait Implementations§
Source§impl Debug for RoundRobin
impl Debug for RoundRobin
Source§impl Default for RoundRobin
impl Default for RoundRobin
Source§impl<N> Strategy<N> for RoundRobin
impl<N> Strategy<N> for RoundRobin
Source§fn select(&self, candidates: &[N], ctx: &SelectionContext) -> Option<usize>
fn select(&self, candidates: &[N], ctx: &SelectionContext) -> Option<usize>
Pick the next node. Returns
None when candidates is empty or all
candidates are excluded via SelectionContext::exclude.Auto Trait Implementations§
impl !Freeze for RoundRobin
impl RefUnwindSafe for RoundRobin
impl Send for RoundRobin
impl Sync for RoundRobin
impl Unpin for RoundRobin
impl UnsafeUnpin for RoundRobin
impl UnwindSafe for RoundRobin
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