Skip to main content

Module strategy

Module strategy 

Source
Expand description

Proxy rotation strategy trait and built-in implementations.

Structs§

LeastUsedStrategy
Selects the healthy proxy with the fewest total requests.
ProxyCandidate
A lightweight view of a proxy considered for selection.
RandomStrategy
Selects a healthy proxy uniformly at random on each call.
RoundRobinStrategy
Cycles through healthy proxies in order, distributing load evenly.
WeightedStrategy
Selects a healthy proxy with probability proportional to its weight.

Traits§

RotationStrategy
Selects a proxy from a slice of candidates on each request.

Functions§

healthy_candidates
Filter all to only the candidates that are currently healthy.

Type Aliases§

BoxedRotationStrategy
Shared-ownership type alias for a RotationStrategy implementation.