Trait hyper::client::connect::Connect

source ·
pub trait Connect: Sealed + Sized { }
Expand description

Connect to a destination, returning an IO transport.

A connector receives a Uri and returns a Future of the ready connection.

Trait Alias

This is really just an alias for the tower::Service trait, with additional bounds set for convenience inside hyper. You don’t actually implement this trait, but tower::Service<Uri> instead.

Implementors§

source§

impl<S, T> Connect for Swhere S: Service<Uri, Response = T> + Send + 'static, S::Error: Into<Box<dyn StdError + Send + Sync>>, S::Future: Unpin + Send, T: AsyncRead + AsyncWrite + Connection + Unpin + Send + 'static,