diff --git a/src/client/conn/http1.rs b/src/client/conn/http1.rs index 647171e764..ecfe6eb8fb 100644 --- a/src/client/conn/http1.rs +++ b/src/client/conn/http1.rs @@ -48,6 +48,8 @@ pub struct Parts { /// /// In most cases, this should just be spawned into an executor, so that it /// can process incoming and outgoing messages, notice hangups, and the like. +/// +/// Instances of this type are typically created via the [`handshake`] function #[must_use = "futures do nothing unless polled"] pub struct Connection where diff --git a/src/client/conn/http2.rs b/src/client/conn/http2.rs index ce86c6dcb4..3db28957b6 100644 --- a/src/client/conn/http2.rs +++ b/src/client/conn/http2.rs @@ -37,6 +37,8 @@ impl Clone for SendRequest { /// /// In most cases, this should just be spawned into an executor, so that it /// can process incoming and outgoing messages, notice hangups, and the like. +/// +/// Instances of this type are typically created via the [`handshake`] function #[must_use = "futures do nothing unless polled"] pub struct Connection where