File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -318,7 +318,12 @@ where
318
318
}
319
319
320
320
pin_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" ]
322
327
pub struct Connection <' a, I , S , E >
323
328
where
324
329
S : HttpService <Incoming >,
@@ -490,7 +495,12 @@ where
490
495
}
491
496
492
497
pin_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" ]
494
504
pub struct UpgradeableConnection <' a, I , S , E >
495
505
where
496
506
S : HttpService <Incoming >,
You can’t perform that action at this time.
0 commit comments