14
14
15
15
// This file is @generated by prost-build.
16
16
/// / Request object for keep alive requests.
17
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
18
17
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
19
18
pub struct KeepAliveRequest {
20
19
/// / ID of the worker making the request.
21
20
#[ prost( string, tag = "1" ) ]
22
21
pub worker_id : :: prost:: alloc:: string:: String ,
23
22
}
24
23
/// / Request object for going away requests.
25
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
26
24
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
27
25
pub struct GoingAwayRequest {
28
26
/// / ID of the worker making the request.
@@ -31,7 +29,6 @@ pub struct GoingAwayRequest {
31
29
}
32
30
/// / Represents the initial request sent to the scheduler informing the
33
31
/// / scheduler about this worker's capabilities.
34
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
35
32
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
36
33
pub struct SupportedProperties {
37
34
/// / The list of properties this worker can support. The exact
@@ -50,7 +47,6 @@ pub struct SupportedProperties {
50
47
> ,
51
48
}
52
49
/// / The result of an ExecutionRequest.
53
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
54
50
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
55
51
pub struct ExecuteResult {
56
52
/// / ID of the worker making the request.
@@ -70,7 +66,6 @@ pub struct ExecuteResult {
70
66
/// Nested message and enum types in `ExecuteResult`.
71
67
pub mod execute_result {
72
68
/// / The actual response data.
73
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
74
69
#[ derive( Clone , PartialEq , :: prost:: Oneof ) ]
75
70
pub enum Result {
76
71
/// / Result of the execution. See `build.bazel.remote.execution.v2.ExecuteResponse`
@@ -87,31 +82,27 @@ pub mod execute_result {
87
82
}
88
83
}
89
84
/// / Result sent back from the server when a node connects.
90
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
91
85
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
92
86
pub struct ConnectionResult {
93
87
/// / The internal ID given to the newly connected node.
94
88
#[ prost( string, tag = "1" ) ]
95
89
pub worker_id : :: prost:: alloc:: string:: String ,
96
90
}
97
91
/// / Request to kill a running operation sent from the scheduler to a worker.
98
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
99
92
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
100
93
pub struct KillOperationRequest {
101
94
/// / The the operation id for the operation to be killed.
102
95
#[ prost( string, tag = "1" ) ]
103
96
pub operation_id : :: prost:: alloc:: string:: String ,
104
97
}
105
98
/// / Communication from the scheduler to the worker.
106
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
107
99
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
108
100
pub struct UpdateForWorker {
109
101
#[ prost( oneof = "update_for_worker::Update" , tags = "1, 2, 3, 4, 5" ) ]
110
102
pub update : :: core:: option:: Option < update_for_worker:: Update > ,
111
103
}
112
104
/// Nested message and enum types in `UpdateForWorker`.
113
105
pub mod update_for_worker {
114
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
115
106
#[ derive( Clone , PartialEq , :: prost:: Oneof ) ]
116
107
pub enum Update {
117
108
/// / This will be sent only as the first item in the stream after the node
@@ -138,7 +129,6 @@ pub mod update_for_worker {
138
129
KillOperationRequest ( super :: KillOperationRequest ) ,
139
130
}
140
131
}
141
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
142
132
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
143
133
pub struct StartExecute {
144
134
/// / The action information used to execute job.
@@ -158,7 +148,6 @@ pub struct StartExecute {
158
148
/// / by programs like bb_browswer to inspect the history of a build.
159
149
/// / Note: Ensure this is always compatible with:
160
150
/// / <https://github.com/buildbarn/bb-remote-execution/blob/e95e066eb624dc9099682394ec18c12e218e8fc4/pkg/proto/cas/cas.proto#L23>
161
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
162
151
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
163
152
pub struct HistoricalExecuteResponse {
164
153
#[ prost( message, optional, tag = "1" ) ]
@@ -190,8 +179,8 @@ pub mod worker_api_client {
190
179
where
191
180
T : tonic:: client:: GrpcService < tonic:: body:: BoxBody > ,
192
181
T :: Error : Into < StdError > ,
193
- T :: ResponseBody : Body < Data = Bytes > + Send + ' static ,
194
- <T :: ResponseBody as Body >:: Error : Into < StdError > + Send ,
182
+ T :: ResponseBody : Body < Data = Bytes > + std :: marker :: Send + ' static ,
183
+ <T :: ResponseBody as Body >:: Error : Into < StdError > + std :: marker :: Send ,
195
184
{
196
185
pub fn new ( inner : T ) -> Self {
197
186
let inner = tonic:: client:: Grpc :: new ( inner) ;
@@ -216,7 +205,7 @@ pub mod worker_api_client {
216
205
> ,
217
206
<T as tonic:: codegen:: Service <
218
207
http:: Request < tonic:: body:: BoxBody > ,
219
- > >:: Error : Into < StdError > + Send + Sync ,
208
+ > >:: Error : Into < StdError > + std :: marker :: Send + std :: marker :: Sync ,
220
209
{
221
210
WorkerApiClient :: new ( InterceptedService :: new ( inner, interceptor) )
222
211
}
@@ -391,12 +380,12 @@ pub mod worker_api_server {
391
380
use tonic:: codegen:: * ;
392
381
/// Generated trait containing gRPC methods that should be implemented for use with WorkerApiServer.
393
382
#[ async_trait]
394
- pub trait WorkerApi : Send + Sync + ' static {
383
+ pub trait WorkerApi : std :: marker :: Send + std :: marker :: Sync + ' static {
395
384
/// Server streaming response type for the ConnectWorker method.
396
385
type ConnectWorkerStream : tonic:: codegen:: tokio_stream:: Stream <
397
386
Item = std:: result:: Result < super :: UpdateForWorker , tonic:: Status > ,
398
387
>
399
- + Send
388
+ + std :: marker :: Send
400
389
+ ' static ;
401
390
/// / Registers this worker and informs the scheduler what properties
402
391
/// / this worker supports. The response must be listened on the client
@@ -447,14 +436,14 @@ pub mod worker_api_server {
447
436
/// / command to the scheduler. The scheduler will then use this information
448
437
/// / to determine which jobs the worker can process.
449
438
#[ derive( Debug ) ]
450
- pub struct WorkerApiServer < T : WorkerApi > {
439
+ pub struct WorkerApiServer < T > {
451
440
inner : Arc < T > ,
452
441
accept_compression_encodings : EnabledCompressionEncodings ,
453
442
send_compression_encodings : EnabledCompressionEncodings ,
454
443
max_decoding_message_size : Option < usize > ,
455
444
max_encoding_message_size : Option < usize > ,
456
445
}
457
- impl < T : WorkerApi > WorkerApiServer < T > {
446
+ impl < T > WorkerApiServer < T > {
458
447
pub fn new ( inner : T ) -> Self {
459
448
Self :: from_arc ( Arc :: new ( inner) )
460
449
}
@@ -508,8 +497,8 @@ pub mod worker_api_server {
508
497
impl < T , B > tonic:: codegen:: Service < http:: Request < B > > for WorkerApiServer < T >
509
498
where
510
499
T : WorkerApi ,
511
- B : Body + Send + ' static ,
512
- B :: Error : Into < StdError > + Send + ' static ,
500
+ B : Body + std :: marker :: Send + ' static ,
501
+ B :: Error : Into < StdError > + std :: marker :: Send + ' static ,
513
502
{
514
503
type Response = http:: Response < tonic:: body:: BoxBody > ;
515
504
type Error = std:: convert:: Infallible ;
@@ -719,7 +708,7 @@ pub mod worker_api_server {
719
708
}
720
709
}
721
710
}
722
- impl < T : WorkerApi > Clone for WorkerApiServer < T > {
711
+ impl < T > Clone for WorkerApiServer < T > {
723
712
fn clone ( & self ) -> Self {
724
713
let inner = self . inner . clone ( ) ;
725
714
Self {
@@ -731,7 +720,9 @@ pub mod worker_api_server {
731
720
}
732
721
}
733
722
}
734
- impl < T : WorkerApi > tonic:: server:: NamedService for WorkerApiServer < T > {
735
- const NAME : & ' static str = "com.github.trace_machina.nativelink.remote_execution.WorkerApi" ;
723
+ /// Generated gRPC service name
724
+ pub const SERVICE_NAME : & str = "com.github.trace_machina.nativelink.remote_execution.WorkerApi" ;
725
+ impl < T > tonic:: server:: NamedService for WorkerApiServer < T > {
726
+ const NAME : & ' static str = SERVICE_NAME ;
736
727
}
737
728
}
0 commit comments