pub struct FetcherConfig {
pub timeout: Duration,
pub user_agent: String,
pub max_attempts: u32,
pub initial_backoff: Duration,
pub max_backoff: Duration,
pub reuse_connections: bool,
pub max_connections_per_host: usize,
}Expand description
Configuration for the HTTP fetcher.
Fields§
§timeout: DurationPer-request timeout.
user_agent: StringUser-Agent header value.
max_attempts: u32Maximum number of retry attempts (1 = no retries).
initial_backoff: DurationInitial back-off delay before the first retry.
max_backoff: DurationMaximum back-off delay cap.
reuse_connections: boolKeep TCP connections alive for reuse.
max_connections_per_host: usizeMaximum number of idle keep-alive connections per host.
Trait Implementations§
Source§impl Clone for FetcherConfig
impl Clone for FetcherConfig
Source§fn clone(&self) -> FetcherConfig
fn clone(&self) -> FetcherConfig
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 FetcherConfig
impl Debug for FetcherConfig
Auto Trait Implementations§
impl Freeze for FetcherConfig
impl RefUnwindSafe for FetcherConfig
impl Send for FetcherConfig
impl Sync for FetcherConfig
impl Unpin for FetcherConfig
impl UnsafeUnpin for FetcherConfig
impl UnwindSafe for FetcherConfig
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