pub struct ProxyPoolConfig { /* private fields */ }Expand description
Configuration for the proxy pool.
Implementations§
Source§impl ProxyPoolConfig
impl ProxyPoolConfig
Sourcepub fn builder() -> ProxyPoolConfigBuilder
pub fn builder() -> ProxyPoolConfigBuilder
Create a new configuration builder.
Sourcepub fn health_check_interval(&self) -> Duration
pub fn health_check_interval(&self) -> Duration
Interval between health checks.
Sourcepub fn health_check_timeout(&self) -> Duration
pub fn health_check_timeout(&self) -> Duration
Timeout for health checks.
Sourcepub fn min_available_proxies(&self) -> usize
pub fn min_available_proxies(&self) -> usize
Minimum number of available proxies.
Sourcepub fn health_check_url(&self) -> &str
pub fn health_check_url(&self) -> &str
URL used for health checks.
Sourcepub fn retry_count(&self) -> usize
pub fn retry_count(&self) -> usize
Number of times to retry a request with different proxies.
Sourcepub fn selection_strategy(&self) -> ProxySelectionStrategy
pub fn selection_strategy(&self) -> ProxySelectionStrategy
Strategy for selecting proxies.
Sourcepub fn max_requests_per_second(&self) -> f64
pub fn max_requests_per_second(&self) -> f64
Maximum requests per second per proxy.
Sourcepub fn response_classifier(&self) -> &Arc<dyn ResponseClassifier>
pub fn response_classifier(&self) -> &Arc<dyn ResponseClassifier>
Response classifier for business-level proxy health feedback.
Sourcepub fn danger_accept_invalid_certs(&self) -> bool
pub fn danger_accept_invalid_certs(&self) -> bool
Whether invalid TLS certificates are accepted when connecting through proxies.
Trait Implementations§
Source§impl Clone for ProxyPoolConfig
impl Clone for ProxyPoolConfig
Source§fn clone(&self) -> ProxyPoolConfig
fn clone(&self) -> ProxyPoolConfig
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 moreAuto Trait Implementations§
impl Freeze for ProxyPoolConfig
impl !RefUnwindSafe for ProxyPoolConfig
impl Send for ProxyPoolConfig
impl Sync for ProxyPoolConfig
impl Unpin for ProxyPoolConfig
impl UnsafeUnpin for ProxyPoolConfig
impl !UnwindSafe for ProxyPoolConfig
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