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

pub trait Connect: Send + Sync {
    type Transport: AsyncRead + AsyncWrite + Send + 'static;
    type Error: Into<Box<dyn StdError + Send + Sync>>;
    type Future: Future<Item = (Self::Transport, Connected), Error = Self::Error> + Send;
    fn connect(&self, dst: Destination) -> Self::Future;
}

Connect to a destination, returning an IO transport.

A connector receives a Destination describing how a connection should be estabilished, and returns a Future of the ready connection.

Associated Types

The connected IO Stream.

An error occured when trying to connect.

A Future that will resolve to the connected Transport.

Required Methods

Connect to a destination.

Implementors

impl<R> Connect for HttpConnector<R> where
    R: Resolve + Clone + Send + Sync,
    R::Future: Send
[src]