File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -318,7 +318,12 @@ where
318318}
319319
320320pin_project ! {
321- /// Connection future.
321+ /// A [`Future`](core::future::Future) representing an HTTP/1 connection, returned from
322+ /// [`Builder::serve_connection`](struct.Builder.html#method.serve_connection).
323+ ///
324+ /// To drive HTTP on this connection this future **must be polled**, typically with
325+ /// `.await`. If it isn't polled, no progress will be made on this connection.
326+ #[ must_use = "futures do nothing unless polled" ]
322327 pub struct Connection <' a, I , S , E >
323328 where
324329 S : HttpService <Incoming >,
@@ -490,7 +495,12 @@ where
490495}
491496
492497pin_project ! {
493- /// Connection future.
498+ /// An upgradable [`Connection`], returned by
499+ /// [`Builder::serve_upgradable_connection`](struct.Builder.html#method.serve_connection_with_upgrades).
500+ ///
501+ /// To drive HTTP on this connection this future **must be polled**, typically with
502+ /// `.await`. If it isn't polled, no progress will be made on this connection.
503+ #[ must_use = "futures do nothing unless polled" ]
494504 pub struct UpgradeableConnection <' a, I , S , E >
495505 where
496506 S : HttpService <Incoming >,
You can’t perform that action at this time.
0 commit comments