pub struct Config { /* private fields */ }Implementations§
Source§impl Config
impl Config
pub fn new(host: impl Into<String>) -> Self
pub fn with_decompression( host: impl Into<String>, policy: DecompressionPolicy, ) -> Self
pub fn max_response_body(self, cap: usize) -> Self
pub fn max_redirects(self, max: u32) -> Self
pub fn retry(self, retry: RetryPolicy) -> Self
pub fn idle_timeout(self, idle: Duration) -> Self
pub fn request_timeout(self, dur: Duration) -> Self
pub fn max_inflight_per_connection(self, max: usize) -> Self
pub fn response_buffer_capacity(self, capacity: usize) -> Self
pub fn request_pool(self, slots: u32, capacity: u32) -> Self
Auto Trait Implementations§
impl !Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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