#[non_exhaustive]pub struct ClientConfig {
pub tls_config: Option<Arc<ClientConfig>>,
pub idle_connection_timeout: Duration,
pub max_idle_connections_per_host: Option<usize>,
pub tcp_keep_alive_time: Duration,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tls_config: Option<Arc<ClientConfig>>§idle_connection_timeout: Duration§max_idle_connections_per_host: Option<usize>§tcp_keep_alive_time: DurationImplementations§
Source§impl ClientConfig
impl ClientConfig
pub fn new() -> Self
pub fn tls_config( self, tls_config: impl Into<Option<Arc<ClientConfig>>>, ) -> Self
pub fn idle_connection_timeout(self, timeout: Duration) -> Self
pub fn max_idle_connections_per_host( self, max_idle_connections_per_host: usize, ) -> Self
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
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 ClientConfig
impl Debug for ClientConfig
Source§impl Default for ClientConfig
impl Default for ClientConfig
Source§fn default() -> ClientConfig
fn default() -> ClientConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClientConfig
impl !RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl !UnwindSafe for ClientConfig
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