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