pub enum SelectMode {
RandomSelect = 0,
RoundRobin = 1,
WeightedRoundRobin = 2,
WeightedICMP = 3,
ConsistentHash = 4,
Closest = 5,
SelectByUser = 1_000,
}Variants§
RandomSelect = 0
RoundRobin = 1
WeightedRoundRobin = 2
WeightedICMP = 3
ConsistentHash = 4
Closest = 5
SelectByUser = 1_000
Trait Implementations§
Source§impl Clone for SelectMode
impl Clone for SelectMode
Source§fn clone(&self) -> SelectMode
fn clone(&self) -> SelectMode
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 Debug for SelectMode
impl Debug for SelectMode
Source§impl Display for SelectMode
impl Display for SelectMode
Source§impl FromStr for SelectMode
impl FromStr for SelectMode
Source§impl IntoEnumIterator for SelectMode
impl IntoEnumIterator for SelectMode
type Iterator = SelectModeIter
fn iter() -> SelectModeIter ⓘ
Source§impl PartialEq for SelectMode
impl PartialEq for SelectMode
impl Copy for SelectMode
impl StructuralPartialEq for SelectMode
Auto Trait Implementations§
impl Freeze for SelectMode
impl RefUnwindSafe for SelectMode
impl Send for SelectMode
impl Sync for SelectMode
impl Unpin for SelectMode
impl UnwindSafe for SelectMode
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