1
1
// This file is @generated by prost-build.
2
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
3
2
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
4
3
pub struct Metadata {
5
4
#[ prost( string, tag = "3" ) ]
@@ -10,7 +9,6 @@ pub struct Metadata {
10
9
pub headers :
11
10
:: std:: collections:: HashMap < :: prost:: alloc:: string:: String , :: prost:: alloc:: string:: String > ,
12
11
}
13
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
14
12
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
15
13
pub struct Payload {
16
14
#[ prost( message, optional, tag = "2" ) ]
@@ -20,7 +18,13 @@ pub struct Payload {
20
18
}
21
19
/// Generated client implementations.
22
20
pub mod request_client {
23
- #![ allow( unused_variables, dead_code, missing_docs, clippy:: let_unit_value) ]
21
+ #![ allow(
22
+ unused_variables,
23
+ dead_code,
24
+ missing_docs,
25
+ clippy:: wildcard_imports,
26
+ clippy:: let_unit_value
27
+ ) ]
24
28
use tonic:: codegen:: http:: Uri ;
25
29
use tonic:: codegen:: * ;
26
30
#[ derive( Debug , Clone ) ]
@@ -42,8 +46,8 @@ pub mod request_client {
42
46
where
43
47
T : tonic:: client:: GrpcService < tonic:: body:: BoxBody > ,
44
48
T :: Error : Into < StdError > ,
45
- T :: ResponseBody : Body < Data = Bytes > + Send + ' static ,
46
- <T :: ResponseBody as Body >:: Error : Into < StdError > + Send ,
49
+ T :: ResponseBody : Body < Data = Bytes > + std :: marker :: Send + ' static ,
50
+ <T :: ResponseBody as Body >:: Error : Into < StdError > + std :: marker :: Send ,
47
51
{
48
52
pub fn new ( inner : T ) -> Self {
49
53
let inner = tonic:: client:: Grpc :: new ( inner) ;
@@ -61,13 +65,13 @@ pub mod request_client {
61
65
F : tonic:: service:: Interceptor ,
62
66
T :: ResponseBody : Default ,
63
67
T : tonic:: codegen:: Service <
64
- http:: Request < tonic:: body:: BoxBody > ,
65
- Response = http:: Response <
66
- <T as tonic:: client:: GrpcService < tonic:: body:: BoxBody > >:: ResponseBody ,
68
+ http:: Request < tonic:: body:: BoxBody > ,
69
+ Response = http:: Response <
70
+ <T as tonic:: client:: GrpcService < tonic:: body:: BoxBody > >:: ResponseBody ,
71
+ > ,
67
72
> ,
68
- > ,
69
73
<T as tonic:: codegen:: Service < http:: Request < tonic:: body:: BoxBody > > >:: Error :
70
- Into < StdError > + Send + Sync ,
74
+ Into < StdError > + std :: marker :: Send + std :: marker :: Sync ,
71
75
{
72
76
RequestClient :: new ( InterceptedService :: new ( inner, interceptor) )
73
77
}
@@ -108,10 +112,7 @@ pub mod request_client {
108
112
request : impl tonic:: IntoRequest < super :: Payload > ,
109
113
) -> std:: result:: Result < tonic:: Response < super :: Payload > , tonic:: Status > {
110
114
self . inner . ready ( ) . await . map_err ( |e| {
111
- tonic:: Status :: new (
112
- tonic:: Code :: Unknown ,
113
- format ! ( "Service was not ready: {}" , e. into( ) ) ,
114
- )
115
+ tonic:: Status :: unknown ( format ! ( "Service was not ready: {}" , e. into( ) ) )
115
116
} ) ?;
116
117
let codec = tonic:: codec:: ProstCodec :: default ( ) ;
117
118
let path = http:: uri:: PathAndQuery :: from_static ( "/Request/request" ) ;
@@ -124,7 +125,13 @@ pub mod request_client {
124
125
}
125
126
/// Generated client implementations.
126
127
pub mod bi_request_stream_client {
127
- #![ allow( unused_variables, dead_code, missing_docs, clippy:: let_unit_value) ]
128
+ #![ allow(
129
+ unused_variables,
130
+ dead_code,
131
+ missing_docs,
132
+ clippy:: wildcard_imports,
133
+ clippy:: let_unit_value
134
+ ) ]
128
135
use tonic:: codegen:: http:: Uri ;
129
136
use tonic:: codegen:: * ;
130
137
#[ derive( Debug , Clone ) ]
@@ -146,8 +153,8 @@ pub mod bi_request_stream_client {
146
153
where
147
154
T : tonic:: client:: GrpcService < tonic:: body:: BoxBody > ,
148
155
T :: Error : Into < StdError > ,
149
- T :: ResponseBody : Body < Data = Bytes > + Send + ' static ,
150
- <T :: ResponseBody as Body >:: Error : Into < StdError > + Send ,
156
+ T :: ResponseBody : Body < Data = Bytes > + std :: marker :: Send + ' static ,
157
+ <T :: ResponseBody as Body >:: Error : Into < StdError > + std :: marker :: Send ,
151
158
{
152
159
pub fn new ( inner : T ) -> Self {
153
160
let inner = tonic:: client:: Grpc :: new ( inner) ;
@@ -165,13 +172,13 @@ pub mod bi_request_stream_client {
165
172
F : tonic:: service:: Interceptor ,
166
173
T :: ResponseBody : Default ,
167
174
T : tonic:: codegen:: Service <
168
- http:: Request < tonic:: body:: BoxBody > ,
169
- Response = http:: Response <
170
- <T as tonic:: client:: GrpcService < tonic:: body:: BoxBody > >:: ResponseBody ,
175
+ http:: Request < tonic:: body:: BoxBody > ,
176
+ Response = http:: Response <
177
+ <T as tonic:: client:: GrpcService < tonic:: body:: BoxBody > >:: ResponseBody ,
178
+ > ,
171
179
> ,
172
- > ,
173
180
<T as tonic:: codegen:: Service < http:: Request < tonic:: body:: BoxBody > > >:: Error :
174
- Into < StdError > + Send + Sync ,
181
+ Into < StdError > + std :: marker :: Send + std :: marker :: Sync ,
175
182
{
176
183
BiRequestStreamClient :: new ( InterceptedService :: new ( inner, interceptor) )
177
184
}
@@ -215,10 +222,7 @@ pub mod bi_request_stream_client {
215
222
tonic:: Status ,
216
223
> {
217
224
self . inner . ready ( ) . await . map_err ( |e| {
218
- tonic:: Status :: new (
219
- tonic:: Code :: Unknown ,
220
- format ! ( "Service was not ready: {}" , e. into( ) ) ,
221
- )
225
+ tonic:: Status :: unknown ( format ! ( "Service was not ready: {}" , e. into( ) ) )
222
226
} ) ?;
223
227
let codec = tonic:: codec:: ProstCodec :: default ( ) ;
224
228
let path = http:: uri:: PathAndQuery :: from_static ( "/BiRequestStream/requestBiStream" ) ;
0 commit comments