Trait hyper::client::Connect
[−]
[src]
pub trait Connect: Service<Request=Url, Error=Error> + 'static { type Output: Io + 'static; type Future: Future<Item=Self::Output, Error=Error> + 'static; fn connect(&mut self, Url) -> 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=Url
and Response: Io
instead.
Associated Types
type Output: Io + 'static
The connected Io Stream.
type Future: Future<Item=Self::Output, Error=Error> + 'static
A Future that will resolve to the connected Stream.