Struct hyper::client::pool::Pool

source ·
pub struct Pool<C: NetworkConnector> { /* private fields */ }
Expand description

The NetworkConnector that behaves as a connection pool used by hyper’s Client.

Implementations§

Creates a Pool with a DefaultConnector.

Creates a Pool with a specified NetworkConnector.

Set a duration for how long an idle connection is still valid.

Clear all idle connections from the Pool, closing them.

Trait Implementations§

Type of Stream to create
Connect to a remote address.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Get the TypeId of this object.