Trait Connect
pub trait Connect: Sealed + Sized
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
impl<S, T> Connect for HttpConnector<R> where S: Service<Uri, Response = T> + Send + 'static, <S as Service<Uri>>::Error: Into<Box<dyn Error + Sync + Send>>, <S as Service<Uri>>::Future: Unpin + Send, T: Read + Write + Connection + Unpin + Send + 'static,impl<S, T> Connect for S where S: Service<Uri, Response = T> + Send + 'static, S::Error: Into<Box<dyn StdError + Send + Sync>>, S::Future: Unpin + Send, T: Read + Write + Connection + Unpin + Send + 'static,impl<S, T> Connect for SocksV4<C> where S: Service<Uri, Response = T> + Send + 'static, <S as Service<Uri>>::Error: Into<Box<dyn Error + Sync + Send>>, <S as Service<Uri>>::Future: Unpin + Send, T: Read + Write + Connection + Unpin + Send + 'static,impl<S, T> Connect for SocksV5<C> where S: Service<Uri, Response = T> + Send + 'static, <S as Service<Uri>>::Error: Into<Box<dyn Error + Sync + Send>>, <S as Service<Uri>>::Future: Unpin + Send, T: Read + Write + Connection + Unpin + Send + 'static,impl<S, T> Connect for Tunnel<C> where S: Service<Uri, Response = T> + Send + 'static, <S as Service<Uri>>::Error: Into<Box<dyn Error + Sync + Send>>, <S as Service<Uri>>::Future: Unpin + Send, T: Read + Write + Connection + Unpin + Send + 'static,