@@ -119,7 +119,10 @@ pub mod health_client {
119
119
pub async fn check (
120
120
& mut self ,
121
121
request : impl tonic:: IntoRequest < super :: HealthCheckRequest > ,
122
- ) -> Result < tonic:: Response < super :: HealthCheckResponse > , tonic:: Status > {
122
+ ) -> std:: result:: Result <
123
+ tonic:: Response < super :: HealthCheckResponse > ,
124
+ tonic:: Status ,
125
+ > {
123
126
self . inner
124
127
. ready ( )
125
128
. await
@@ -153,7 +156,7 @@ pub mod health_client {
153
156
pub async fn watch (
154
157
& mut self ,
155
158
request : impl tonic:: IntoRequest < super :: HealthCheckRequest > ,
156
- ) -> Result <
159
+ ) -> std :: result :: Result <
157
160
tonic:: Response < tonic:: codec:: Streaming < super :: HealthCheckResponse > > ,
158
161
tonic:: Status ,
159
162
> {
@@ -186,10 +189,13 @@ pub mod health_server {
186
189
async fn check (
187
190
& self ,
188
191
request : tonic:: Request < super :: HealthCheckRequest > ,
189
- ) -> Result < tonic:: Response < super :: HealthCheckResponse > , tonic:: Status > ;
192
+ ) -> std:: result:: Result <
193
+ tonic:: Response < super :: HealthCheckResponse > ,
194
+ tonic:: Status ,
195
+ > ;
190
196
/// Server streaming response type for the Watch method.
191
197
type WatchStream : futures_core:: Stream <
192
- Item = Result < super :: HealthCheckResponse , tonic:: Status > ,
198
+ Item = std :: result :: Result < super :: HealthCheckResponse , tonic:: Status > ,
193
199
>
194
200
+ Send
195
201
+ ' static ;
@@ -211,7 +217,7 @@ pub mod health_server {
211
217
async fn watch (
212
218
& self ,
213
219
request : tonic:: Request < super :: HealthCheckRequest > ,
214
- ) -> Result < tonic:: Response < Self :: WatchStream > , tonic:: Status > ;
220
+ ) -> std :: result :: Result < tonic:: Response < Self :: WatchStream > , tonic:: Status > ;
215
221
}
216
222
#[ derive( Debug ) ]
217
223
pub struct HealthServer < T : Health > {
@@ -266,7 +272,7 @@ pub mod health_server {
266
272
fn poll_ready (
267
273
& mut self ,
268
274
_cx : & mut Context < ' _ > ,
269
- ) -> Poll < Result < ( ) , Self :: Error > > {
275
+ ) -> Poll < std :: result :: Result < ( ) , Self :: Error > > {
270
276
Poll :: Ready ( Ok ( ( ) ) )
271
277
}
272
278
fn call ( & mut self , req : http:: Request < B > ) -> Self :: Future {
0 commit comments