[−][src]Trait hyper::client::connect::Connect
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
type Transport: AsyncRead + AsyncWrite + Send + 'static
[−]
The connected IO Stream.
type Error: Into<Box<dyn StdError + Send + Sync>>
[−]
An error occured when trying to connect.
type Future: Future<Item = (Self::Transport, Connected), Error = Self::Error> + Send
[−]
A Future that will resolve to the connected Transport.
Required methods
fn connect(&self, dst: Destination) -> Self::Future
[−]
Connect to a destination.
Implementors
impl<R> Connect for HttpConnector<R> where
R: Resolve + Clone + Send + Sync,
R::Future: Send,
[src][−]
R: Resolve + Clone + Send + Sync,
R::Future: Send,
type Transport = TcpStream
type Error = Error
type Future = HttpConnecting<R>
fn connect(&self, dst: Destination) -> Self::Future
[src]
impl<T> Connect for HttpsConnector<T> where
T: Connect<Error = Error>,
T::Transport: 'static,
T::Future: 'static,
impl<T> Connect for HttpsConnector<T> where
T: Connect<Error = Error>,
T::Transport: 'static,
T::Future: 'static,