@@ -5,7 +5,7 @@ use std::sync::Arc;
5
5
6
6
use tokio_executor:: { SpawnError , TypedExecutor } ;
7
7
8
- use crate :: body:: Payload ;
8
+ use crate :: body:: { Payload , Body } ;
9
9
use crate :: proto:: h2:: server:: H2Stream ;
10
10
use crate :: server:: conn:: spawn_all:: { NewSvcTask , Watcher } ;
11
11
use crate :: service:: Service ;
@@ -14,7 +14,7 @@ pub trait H2Exec<F, B: Payload>: Clone {
14
14
fn execute_h2stream ( & mut self , fut : H2Stream < F , B > ) -> crate :: Result < ( ) > ;
15
15
}
16
16
17
- pub trait NewSvcExec < I , N , S : Service , E , W : Watcher < I , S , E > > : Clone {
17
+ pub trait NewSvcExec < I , N , S : Service < Body > , E , W : Watcher < I , S , E > > : Clone {
18
18
fn execute_new_svc ( & mut self , fut : NewSvcTask < I , N , S , E , W > ) -> crate :: Result < ( ) > ;
19
19
}
20
20
@@ -119,7 +119,7 @@ where
119
119
impl < I , N , S , E , W > NewSvcExec < I , N , S , E , W > for Exec
120
120
where
121
121
NewSvcTask < I , N , S , E , W > : Future < Output =( ) > + Send + ' static ,
122
- S : Service ,
122
+ S : Service < Body > ,
123
123
W : Watcher < I , S , E > ,
124
124
{
125
125
fn execute_new_svc ( & mut self , fut : NewSvcTask < I , N , S , E , W > ) -> crate :: Result < ( ) > {
@@ -148,7 +148,7 @@ impl<I, N, S, E, W> NewSvcExec<I, N, S, E, W> for E
148
148
where
149
149
E : TypedExecutor < NewSvcTask < I , N , S , E , W > > + Clone ,
150
150
NewSvcTask < I , N , S , E , W > : Future < Output =( ) > ,
151
- S : Service ,
151
+ S : Service < Body > ,
152
152
W : Watcher < I , S , E > ,
153
153
{
154
154
fn execute_new_svc ( & mut self , fut : NewSvcTask < I , N , S , E , W > ) -> crate :: Result < ( ) > {
0 commit comments