Trait hyper::client::Connect [] [src]

pub trait Connect: Service<Request = Uri, Error = Error> + 'static {
    type Output: AsyncRead + AsyncWrite + 'static;
    type Future: Future<Item = Self::Output, Error = Error> + 'static;
    fn connect(&self, _: Uri) -> Self::Future;
}
[]

A connector creates an Io to a remote address..

This trait is not implemented directly, and only exists to make the intent clearer. A connector should implement Service with Request=Uri and Response: Io instead.

Associated Types

[]

The connected Io Stream.

[]

A Future that will resolve to the connected Stream.

Required Methods

[]

Connect to a remote address.

Implementors