#[non_exhaustive]pub enum RotationStrategy {
RoundRobin,
Random,
}Expand description
Selection policy for a static proxy list.
use millipede_core::proxy::RotationStrategy;
assert_eq!(RotationStrategy::default(), RotationStrategy::RoundRobin);Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RoundRobin
Selects proxies in stable cyclic order.
Random
Selects a proxy using the crate’s lightweight process-local generator.
Trait Implementations§
Source§impl Clone for RotationStrategy
impl Clone for RotationStrategy
Source§fn clone(&self) -> RotationStrategy
fn clone(&self) -> RotationStrategy
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 RotationStrategy
Source§impl Debug for RotationStrategy
impl Debug for RotationStrategy
Source§impl Default for RotationStrategy
impl Default for RotationStrategy
Source§fn default() -> RotationStrategy
fn default() -> RotationStrategy
Returns the “default value” for a type. Read more
impl Eq for RotationStrategy
Source§impl PartialEq for RotationStrategy
impl PartialEq for RotationStrategy
impl StructuralPartialEq for RotationStrategy
Auto Trait Implementations§
impl Freeze for RotationStrategy
impl RefUnwindSafe for RotationStrategy
impl Send for RotationStrategy
impl Sync for RotationStrategy
impl Unpin for RotationStrategy
impl UnsafeUnpin for RotationStrategy
impl UnwindSafe for RotationStrategy
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