Struct fibers_http_client::connection::ConnectionPoolBuilder[][src]

pub struct ConnectionPoolBuilder { /* fields omitted */ }

ConnectionPool builder.

Methods

impl ConnectionPoolBuilder
[src]

Makes a new ConnectionPoolBuilder instance with the default settings.

Important traits for &'a mut R

Sets the maximum size (i.e., the number of connections) of the pool.

The default value is 4096.

Important traits for &'a mut R

Sets the timeout duration of TCP connect operation issued by the pool.

The default value is Duration::from_secs(5).

Important traits for &'a mut R

Sets the retention duration of a pooled (inactive) connection.

If a connection is inactive (i.e., unused by any clients) beyond the duration, it will removed from the pool.

The default value is Duration::from_secs(10).

Important traits for &'a mut R

Sets the metrics builder used by the pool.

The default value is MetricBuilder::new().

Makes a new ConnectionPool instance with the given settings.

Trait Implementations

impl Debug for ConnectionPoolBuilder
[src]

Formats the value using the given formatter. Read more

impl Default for ConnectionPoolBuilder
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations