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]
impl Pool<DefaultConnector>
impl<C: NetworkConnector> Pool<C>
[src]
impl<C: NetworkConnector> Pool<C>
pub fn with_connector(config: Config, connector: C) -> Pool<C>
[src]
pub fn with_connector(config: Config, connector: C) -> Pool<C>
Creates a Pool
with a specified NetworkConnector
.
pub fn clear_idle(&mut self)
[src]
pub fn clear_idle(&mut self)
Clear all idle connections from the Pool, closing them.
Trait Implementations
impl<C: NetworkConnector<Stream = S>, S: NetworkStream + Send> NetworkConnector for Pool<C>
[src]
impl<C: NetworkConnector<Stream = S>, S: NetworkStream + Send> NetworkConnector for Pool<C>
type Stream = PooledStream<S>
Type of Stream to create
fn connect(
&self,
host: &str,
port: u16,
scheme: &str
) -> Result<PooledStream<S>>
[src]
fn connect(
&self,
host: &str,
port: u16,
scheme: &str
) -> Result<PooledStream<S>>
Connect to a remote address.