@@ -168,7 +168,7 @@ pub const GRPC_METADATA_CREDENTIALS_PLUGIN_SYNC_MAX: u32 = 4;
168
168
#[ repr( u32 ) ]
169
169
#[ doc = " The various compression algorithms supported by gRPC (not sorted by" ]
170
170
#[ doc = " compression level)" ]
171
- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
171
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
172
172
pub enum grpc_compression_algorithm {
173
173
GRPC_COMPRESS_NONE = 0 ,
174
174
GRPC_COMPRESS_DEFLATE = 1 ,
@@ -181,7 +181,7 @@ pub enum grpc_compression_algorithm {
181
181
#[ doc = " encodings to request compression in an abstract way. The level-algorithm" ]
182
182
#[ doc = " mapping is performed internally and depends on the peer's supported" ]
183
183
#[ doc = " compression algorithms." ]
184
- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
184
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
185
185
pub enum grpc_compression_level {
186
186
GRPC_COMPRESS_LEVEL_NONE = 0 ,
187
187
GRPC_COMPRESS_LEVEL_LOW = 1 ,
@@ -298,7 +298,7 @@ impl ::std::fmt::Debug for grpc_slice_buffer {
298
298
}
299
299
#[ repr( u32 ) ]
300
300
#[ doc = " The clocks we support." ]
301
- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
301
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
302
302
pub enum gpr_clock_type {
303
303
#[ doc = " Monotonic clock. Epoch undefined. Always moves forwards." ]
304
304
GPR_CLOCK_MONOTONIC = 0 ,
@@ -533,7 +533,7 @@ extern "C" {
533
533
pub fn grpc_slice_split_tail ( s : * mut grpc_slice , split : usize ) -> grpc_slice ;
534
534
}
535
535
#[ repr( u32 ) ]
536
- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
536
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
537
537
pub enum grpc_slice_ref_whom {
538
538
GRPC_SLICE_REF_TAIL = 1 ,
539
539
GRPC_SLICE_REF_HEAD = 2 ,
@@ -786,7 +786,7 @@ pub mod grpc_status_code {
786
786
pub const GRPC_STATUS__DO_NOT_USE : Type = -1 ;
787
787
}
788
788
#[ repr( u32 ) ]
789
- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
789
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
790
790
pub enum grpc_byte_buffer_type {
791
791
GRPC_BB_RAW = 0 ,
792
792
}
@@ -871,7 +871,7 @@ pub struct grpc_socket_factory {
871
871
}
872
872
#[ repr( u32 ) ]
873
873
#[ doc = " Type specifier for grpc_arg" ]
874
- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
874
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
875
875
pub enum grpc_arg_type {
876
876
GRPC_ARG_STRING = 0 ,
877
877
GRPC_ARG_INTEGER = 1 ,
@@ -965,7 +965,7 @@ pub struct grpc_channel_args {
965
965
#[ doc = "particular operation, the grpc_call_error returned will be GRPC_CALL_OK." ]
966
966
#[ doc = "Receiving any other value listed here is an indication of a bug in the" ]
967
967
#[ doc = "caller." ]
968
- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
968
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
969
969
pub enum grpc_call_error {
970
970
#[ doc = " everything went ok" ]
971
971
GRPC_CALL_OK = 0 ,
@@ -1032,7 +1032,7 @@ impl ::std::fmt::Debug for grpc_metadata {
1032
1032
}
1033
1033
#[ repr( u32 ) ]
1034
1034
#[ doc = " The type of completion (for grpc_event)" ]
1035
- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
1035
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
1036
1036
pub enum grpc_completion_type {
1037
1037
#[ doc = " Shutting down" ]
1038
1038
GRPC_QUEUE_SHUTDOWN = 0 ,
@@ -1082,7 +1082,7 @@ impl ::std::fmt::Debug for grpc_call_details {
1082
1082
}
1083
1083
}
1084
1084
#[ repr( u32 ) ]
1085
- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
1085
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
1086
1086
pub enum grpc_op_type {
1087
1087
#[ doc = " Send initial metadata: one and only one instance MUST be sent for each" ]
1088
1088
#[ doc = "call, unless the call was cancelled - in which case this can be skipped." ]
@@ -1272,7 +1272,7 @@ pub struct grpc_resource_quota {
1272
1272
#[ doc = "grpc_completion_queue_pluck() are called on the completion queue (unless the" ]
1273
1273
#[ doc = "grpc_cq_polling_type is GRPC_CQ_NON_POLLING) and hence it is very important" ]
1274
1274
#[ doc = "to actively call these APIs" ]
1275
- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
1275
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
1276
1276
pub enum grpc_cq_polling_type {
1277
1277
#[ doc = " The completion queue will have an associated pollset and there is no" ]
1278
1278
#[ doc = "restriction on the type of file descriptors the pollset may contain" ]
@@ -1289,7 +1289,7 @@ pub enum grpc_cq_polling_type {
1289
1289
}
1290
1290
#[ repr( u32 ) ]
1291
1291
#[ doc = " Specifies the type of APIs to use to pop events from the completion queue" ]
1292
- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
1292
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
1293
1293
pub enum grpc_cq_completion_type {
1294
1294
#[ doc = " Events are popped out by calling grpc_completion_queue_next() API ONLY" ]
1295
1295
GRPC_CQ_NEXT = 0 ,
@@ -1516,7 +1516,7 @@ extern "C" {
1516
1516
}
1517
1517
#[ repr( u32 ) ]
1518
1518
#[ doc = " Connectivity state of a channel." ]
1519
- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
1519
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
1520
1520
pub enum grpc_connectivity_state {
1521
1521
#[ doc = " channel is idle" ]
1522
1522
GRPC_CHANNEL_IDLE = 0 ,
@@ -2032,7 +2032,7 @@ extern "C" {
2032
2032
}
2033
2033
#[ repr( u32 ) ]
2034
2034
#[ doc = " How to handle payloads for a registered method" ]
2035
- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
2035
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
2036
2036
pub enum grpc_server_register_method_payload_handling {
2037
2037
#[ doc = " Don't try to read the payload" ]
2038
2038
GRPC_SRM_PAYLOAD_NONE = 0 ,
@@ -2265,7 +2265,7 @@ extern "C" {
2265
2265
}
2266
2266
#[ repr( u32 ) ]
2267
2267
#[ doc = " Results for the SSL roots override callback." ]
2268
- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
2268
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
2269
2269
pub enum grpc_ssl_roots_override_result {
2270
2270
GRPC_SSL_ROOTS_OVERRIDE_OK = 0 ,
2271
2271
GRPC_SSL_ROOTS_OVERRIDE_FAIL_PERMANENTLY = 1 ,
@@ -2274,14 +2274,14 @@ pub enum grpc_ssl_roots_override_result {
2274
2274
}
2275
2275
#[ repr( u32 ) ]
2276
2276
#[ doc = " Callback results for dynamically loading a SSL certificate config." ]
2277
- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
2277
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
2278
2278
pub enum grpc_ssl_certificate_config_reload_status {
2279
2279
GRPC_SSL_CERTIFICATE_CONFIG_RELOAD_UNCHANGED = 0 ,
2280
2280
GRPC_SSL_CERTIFICATE_CONFIG_RELOAD_NEW = 1 ,
2281
2281
GRPC_SSL_CERTIFICATE_CONFIG_RELOAD_FAIL = 2 ,
2282
2282
}
2283
2283
#[ repr( u32 ) ]
2284
- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
2284
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
2285
2285
pub enum grpc_ssl_client_certificate_request_type {
2286
2286
#[ doc = " Server does not request client certificate." ]
2287
2287
#[ doc = "The certificate presented by the client is not checked by the server at" ]
@@ -2338,14 +2338,14 @@ impl grpc_security_level {
2338
2338
grpc_security_level:: GRPC_PRIVACY_AND_INTEGRITY ;
2339
2339
}
2340
2340
#[ repr( u32 ) ]
2341
- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
2341
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
2342
2342
pub enum grpc_security_level {
2343
2343
GRPC_SECURITY_MIN = 0 ,
2344
2344
GRPC_INTEGRITY_ONLY = 1 ,
2345
2345
GRPC_PRIVACY_AND_INTEGRITY = 2 ,
2346
2346
}
2347
2347
#[ repr( u32 ) ]
2348
- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
2348
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
2349
2349
pub enum grpc_tls_server_verification_option {
2350
2350
#[ doc = " Default option: performs server certificate verification and hostname" ]
2351
2351
#[ doc = "verification." ]
@@ -2362,14 +2362,14 @@ pub enum grpc_tls_server_verification_option {
2362
2362
#[ repr( u32 ) ]
2363
2363
#[ doc = " Type of local connections for which local channel/server credentials will be" ]
2364
2364
#[ doc = " applied. It supports UDS and local TCP connections." ]
2365
- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
2365
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
2366
2366
pub enum grpc_local_connect_type {
2367
2367
UDS = 0 ,
2368
2368
LOCAL_TCP = 1 ,
2369
2369
}
2370
2370
#[ repr( u32 ) ]
2371
2371
#[ doc = " The TLS versions that are supported by the SSL stack." ]
2372
- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
2372
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
2373
2373
pub enum grpc_tls_version {
2374
2374
TLS1_2 = 0 ,
2375
2375
TLS1_3 = 1 ,
@@ -3486,7 +3486,7 @@ extern "C" {
3486
3486
#[ repr( u32 ) ]
3487
3487
#[ doc = " The severity of a log message - use the #defines below when calling into" ]
3488
3488
#[ doc = "gpr_log to additionally supply file and line data" ]
3489
- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
3489
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
3490
3490
pub enum gpr_log_severity {
3491
3491
GPR_LOG_SEVERITY_DEBUG = 0 ,
3492
3492
GPR_LOG_SEVERITY_INFO = 1 ,
0 commit comments