@@ -67,11 +67,10 @@ impl<E> Builder<E> {
67
67
/// Bind a connection together with a [`Service`].
68
68
pub async fn serve_connection < I , S , B > ( & self , io : I , service : S ) -> Result < ( ) >
69
69
where
70
- S : Service < Request < Incoming > , Response = Response < B > > + Send ,
70
+ S : Service < Request < Incoming > , Response = Response < B > > ,
71
71
S :: Future : ' static ,
72
72
S :: Error : Into < Box < dyn StdError + Send + Sync > > ,
73
- B : Body + Send + ' static ,
74
- B :: Data : Send ,
73
+ B : Body + ' static ,
75
74
B :: Error : Into < Box < dyn StdError + Send + Sync > > ,
76
75
I : Read + Write + Unpin + ' static ,
77
76
E : Http2ServerConnExec < S :: Future , B > ,
@@ -90,11 +89,10 @@ impl<E> Builder<E> {
90
89
/// `Send`.
91
90
pub async fn serve_connection_with_upgrades < I , S , B > ( & self , io : I , service : S ) -> Result < ( ) >
92
91
where
93
- S : Service < Request < Incoming > , Response = Response < B > > + Send ,
92
+ S : Service < Request < Incoming > , Response = Response < B > > ,
94
93
S :: Future : ' static ,
95
94
S :: Error : Into < Box < dyn StdError + Send + Sync > > ,
96
- B : Body + Send + ' static ,
97
- B :: Data : Send ,
95
+ B : Body + ' static ,
98
96
B :: Error : Into < Box < dyn StdError + Send + Sync > > ,
99
97
I : Read + Write + Unpin + Send + ' static ,
100
98
E : Http2ServerConnExec < S :: Future , B > ,
@@ -295,11 +293,10 @@ impl<E> Http1Builder<'_, E> {
295
293
/// Bind a connection together with a [`Service`].
296
294
pub async fn serve_connection < I , S , B > ( & self , io : I , service : S ) -> Result < ( ) >
297
295
where
298
- S : Service < Request < Incoming > , Response = Response < B > > + Send ,
299
- S :: Future : Send + ' static ,
296
+ S : Service < Request < Incoming > , Response = Response < B > > ,
297
+ S :: Future : ' static ,
300
298
S :: Error : Into < Box < dyn StdError + Send + Sync > > ,
301
- B : Body + Send + ' static ,
302
- B :: Data : Send ,
299
+ B : Body + ' static ,
303
300
B :: Error : Into < Box < dyn StdError + Send + Sync > > ,
304
301
I : Read + Write + Unpin + ' static ,
305
302
E : Http2ServerConnExec < S :: Future , B > ,
@@ -443,11 +440,10 @@ impl<E> Http2Builder<'_, E> {
443
440
/// Bind a connection together with a [`Service`].
444
441
pub async fn serve_connection < I , S , B > ( & self , io : I , service : S ) -> Result < ( ) >
445
442
where
446
- S : Service < Request < Incoming > , Response = Response < B > > + Send ,
447
- S :: Future : Send + ' static ,
443
+ S : Service < Request < Incoming > , Response = Response < B > > ,
444
+ S :: Future : ' static ,
448
445
S :: Error : Into < Box < dyn StdError + Send + Sync > > ,
449
- B : Body + Send + ' static ,
450
- B :: Data : Send ,
446
+ B : Body + ' static ,
451
447
B :: Error : Into < Box < dyn StdError + Send + Sync > > ,
452
448
I : Read + Write + Unpin + ' static ,
453
449
E : Http2ServerConnExec < S :: Future , B > ,
0 commit comments