@@ -82,14 +82,14 @@ impl<'w, 's, 'a, 'b, T: 'static + Send + Sync> Chain<'w, 's, 'a, 'b, T> {
82
82
pub fn then < P : Provider < Request = T > > (
83
83
self ,
84
84
provider : P ,
85
- ) -> Chain < ' w , ' s , ' a , P :: Response >
85
+ ) -> Chain < ' w , ' s , ' a , ' b , P :: Response >
86
86
where
87
87
P :: Response : ' static + Send + Sync ,
88
88
{
89
89
let source = self . target ;
90
- let target = self . commands . spawn ( UnusedTarget ) . id ( ) ;
91
- provider. connect ( source, target, self . commands ) ;
92
- Chain :: new ( self . scope , target, self . commands )
90
+ let target = self . builder . commands . spawn ( UnusedTarget ) . id ( ) ;
91
+ provider. connect ( source, target, self . builder . commands ) ;
92
+ Chain :: new ( target, self . builder )
93
93
}
94
94
95
95
/// Connect the response in the chain into a new provider. Get the node
@@ -103,15 +103,15 @@ impl<'w, 's, 'a, 'b, T: 'static + Send + Sync> Chain<'w, 's, 'a, 'b, T> {
103
103
P :: Streams : StreamPack ,
104
104
{
105
105
let source = self . target ;
106
- let target = self . commands . spawn ( UnusedTarget ) . id ( ) ;
107
- provider. connect ( source, target, self . commands ) ;
106
+ let target = self . builder . commands . spawn ( UnusedTarget ) . id ( ) ;
107
+ provider. connect ( source, target, self . builder . commands ) ;
108
108
let ( bundle, streams) = <P :: Streams as StreamPack >:: spawn_node_streams (
109
- self . scope , self . commands ,
109
+ self . builder . scope , self . builder . commands ,
110
110
) ;
111
- self . commands . entity ( source) . insert ( bundle) ;
111
+ self . builder . commands . entity ( source) . insert ( bundle) ;
112
112
Node {
113
- input : InputSlot :: new ( self . scope , source) ,
114
- output : Output :: new ( self . scope , target) ,
113
+ input : InputSlot :: new ( self . builder . scope , source) ,
114
+ output : Output :: new ( self . builder . scope , target) ,
115
115
streams,
116
116
}
117
117
}
@@ -121,7 +121,7 @@ impl<'w, 's, 'a, 'b, T: 'static + Send + Sync> Chain<'w, 's, 'a, 'b, T> {
121
121
pub fn map < M , F : AsMap < M > > (
122
122
self ,
123
123
f : F ,
124
- ) -> Chain < ' w , ' s , ' a , <F :: MapType as ProvideOnce >:: Response >
124
+ ) -> Chain < ' w , ' s , ' a , ' b , <F :: MapType as ProvideOnce >:: Response >
125
125
where
126
126
F :: MapType : Provider < Request =T > ,
127
127
<F :: MapType as ProvideOnce >:: Response : ' static + Send + Sync ,
@@ -152,7 +152,7 @@ impl<'w, 's, 'a, 'b, T: 'static + Send + Sync> Chain<'w, 's, 'a, 'b, T> {
152
152
pub fn map_block < U > (
153
153
self ,
154
154
f : impl FnMut ( T ) -> U + ' static + Send + Sync ,
155
- ) -> Chain < ' w , ' s , ' a , U >
155
+ ) -> Chain < ' w , ' s , ' a , ' b , U >
156
156
where
157
157
U : ' static + Send + Sync ,
158
158
{
@@ -177,7 +177,7 @@ impl<'w, 's, 'a, 'b, T: 'static + Send + Sync> Chain<'w, 's, 'a, 'b, T> {
177
177
pub fn map_async < Task > (
178
178
self ,
179
179
f : impl FnMut ( T ) -> Task + ' static + Send + Sync ,
180
- ) -> Chain < ' w , ' s , ' a , Task :: Output >
180
+ ) -> Chain < ' w , ' s , ' a , ' b , Task :: Output >
181
181
where
182
182
Task : Future + ' static + Send + Sync ,
183
183
Task :: Output : ' static + Send + Sync ,
@@ -208,7 +208,7 @@ impl<'w, 's, 'a, 'b, T: 'static + Send + Sync> Chain<'w, 's, 'a, 'b, T> {
208
208
pub fn cancellation_filter < ThenResponse , F > (
209
209
self ,
210
210
filter_provider : F
211
- ) -> Chain < ' w , ' s , ' a , ThenResponse >
211
+ ) -> Chain < ' w , ' s , ' a , ' b , ThenResponse >
212
212
where
213
213
ThenResponse : ' static + Send + Sync ,
214
214
F : Provider < Request = T , Response = Option < ThenResponse > > ,
@@ -245,16 +245,16 @@ impl<'w, 's, 'a, 'b, T: 'static + Send + Sync> Chain<'w, 's, 'a, 'b, T> {
245
245
pub fn fork_clone (
246
246
self ,
247
247
build : impl FnOnce ( Chain < T > ) ,
248
- ) -> Chain < ' w , ' s , ' a , T >
248
+ ) -> Chain < ' w , ' s , ' a , ' b , T >
249
249
where
250
250
T : Clone ,
251
251
{
252
- Chain :: < ' w , ' s , ' _ , T > :: new (
253
- self . scope , self . target , self . commands ,
254
- ) . fork_clone_zip ( (
255
- | chain : Chain < T > | chain . output ( ) ,
256
- build
257
- ) ) . 0 . chain ( self . commands )
252
+ Chain :: < T > :: new ( self . target , self . builder )
253
+ . fork_clone_zip ( (
254
+ | chain : Chain < T > | chain . output ( ) ,
255
+ build ,
256
+ ) ) . 0
257
+ . chain ( self . builder )
258
258
}
259
259
260
260
/// When the response is delivered, we will make clones of it and
0 commit comments