pub trait Connect: Sealed + Sized { }
Available on crate features
client
and client-legacy
only.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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.