pub struct HttpTransportConfig {
pub timeout: Duration,
pub proxy: Option<String>,
pub pool_max_idle_per_host: Option<usize>,
pub pool_idle_timeout: Option<Duration>,
}
Expand description
Transport configuration for constructing a reqwest Client
Fields§
§timeout: Duration
§proxy: Option<String>
§pool_max_idle_per_host: Option<usize>
Maximum idle connections per host (maps to reqwest::ClientBuilder::pool_max_idle_per_host)
pool_idle_timeout: Option<Duration>
Idle timeout for pooled connections (maps to reqwest::ClientBuilder::pool_idle_timeout)
Auto Trait Implementations§
impl Freeze for HttpTransportConfig
impl RefUnwindSafe for HttpTransportConfig
impl Send for HttpTransportConfig
impl Sync for HttpTransportConfig
impl Unpin for HttpTransportConfig
impl UnwindSafe for HttpTransportConfig
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