pub enum SelectionStrategy {
RoundRobin,
Random,
ShuffledRoundRobin,
}Expand description
How a replacement is chosen from the currently eligible proxies.
Variants§
RoundRobin
Visit proxies in candidate-list order, wrapping at the end.
Random
Choose uniformly among eligible proxies other than the current one.
ShuffledRoundRobin
Visit every eligible proxy once in a randomly shuffled round. New and recovered proxies join the next round; unavailable proxies are skipped. Consecutive rounds do not immediately repeat a proxy when there is an alternative. Request/time limits still apply to each selection.
Trait Implementations§
Source§impl Clone for SelectionStrategy
impl Clone for SelectionStrategy
Source§fn clone(&self) -> SelectionStrategy
fn clone(&self) -> SelectionStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SelectionStrategy
Source§impl Debug for SelectionStrategy
impl Debug for SelectionStrategy
Source§impl Default for SelectionStrategy
impl Default for SelectionStrategy
Source§fn default() -> SelectionStrategy
fn default() -> SelectionStrategy
Returns the “default value” for a type. Read more
impl Eq for SelectionStrategy
Source§impl PartialEq for SelectionStrategy
impl PartialEq for SelectionStrategy
impl StructuralPartialEq for SelectionStrategy
Auto Trait Implementations§
impl Freeze for SelectionStrategy
impl RefUnwindSafe for SelectionStrategy
impl Send for SelectionStrategy
impl Sync for SelectionStrategy
impl Unpin for SelectionStrategy
impl UnsafeUnpin for SelectionStrategy
impl UnwindSafe for SelectionStrategy
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