Struct hyper::client::pool::Pool [] [src]

pub struct Pool<C: NetworkConnector> { /* fields omitted */ }

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

Methods

impl Pool<DefaultConnector>
[src]

[src]

Creates a Pool with a DefaultConnector.

impl<C: NetworkConnector> Pool<C>
[src]

[src]

Creates a Pool with a specified NetworkConnector.

[src]

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

[src]

[src]

Clear all idle connections from the Pool, closing them.

Trait Implementations

impl<C: NetworkConnector<Stream = S>, S: NetworkStream + Send> NetworkConnector for Pool<C>
[src]

Type of Stream to create

[src]

Connect to a remote address.