pub struct LeastLoad;Expand description
Selects the node with the lowest load score.
Implementations§
Trait Implementations§
Source§impl<N: LoadMetric> Strategy<N> for LeastLoad
impl<N: LoadMetric> Strategy<N> for LeastLoad
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 LeastLoad
impl RefUnwindSafe for LeastLoad
impl Send for LeastLoad
impl Sync for LeastLoad
impl Unpin for LeastLoad
impl UnsafeUnpin for LeastLoad
impl UnwindSafe for LeastLoad
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