@@ -636,6 +636,11 @@ fn bindgen_test_layout_grpc_slice_grpc_slice_data() {
636
636
)
637
637
) ;
638
638
}
639
+ impl :: std:: fmt:: Debug for grpc_slice_grpc_slice_data {
640
+ fn fmt ( & self , f : & mut :: std:: fmt:: Formatter < ' _ > ) -> :: std:: fmt:: Result {
641
+ write ! ( f, "grpc_slice_grpc_slice_data {{ union }}" )
642
+ }
643
+ }
639
644
#[ test]
640
645
fn bindgen_test_layout_grpc_slice ( ) {
641
646
assert_eq ! (
@@ -669,6 +674,15 @@ fn bindgen_test_layout_grpc_slice() {
669
674
)
670
675
) ;
671
676
}
677
+ impl :: std:: fmt:: Debug for grpc_slice {
678
+ fn fmt ( & self , f : & mut :: std:: fmt:: Formatter < ' _ > ) -> :: std:: fmt:: Result {
679
+ write ! (
680
+ f,
681
+ "grpc_slice {{ refcount: {:?}, data: {:?} }}" ,
682
+ self . refcount, self . data
683
+ )
684
+ }
685
+ }
672
686
#[ doc = " Represents an expandable array of slices, to be interpreted as a" ]
673
687
#[ doc = "single item." ]
674
688
#[ repr( C ) ]
@@ -762,6 +776,11 @@ fn bindgen_test_layout_grpc_slice_buffer() {
762
776
)
763
777
) ;
764
778
}
779
+ impl :: std:: fmt:: Debug for grpc_slice_buffer {
780
+ fn fmt ( & self , f : & mut :: std:: fmt:: Formatter < ' _ > ) -> :: std:: fmt:: Result {
781
+ write ! ( f , "grpc_slice_buffer {{ base_slices: {:?}, slices: {:?}, count: {:?}, capacity: {:?}, length: {:?}, inlined: {:?} }}" , self . base_slices , self . slices , self . count , self . capacity , self . length , self . inlined )
782
+ }
783
+ }
765
784
#[ repr( u32 ) ]
766
785
#[ doc = " The clocks we support." ]
767
786
#[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
@@ -844,6 +863,7 @@ extern "C" {
844
863
) -> gpr_atm ;
845
864
}
846
865
#[ repr( C ) ]
866
+ #[ derive( Debug , Copy , Clone ) ]
847
867
pub struct gpr_event {
848
868
pub state : gpr_atm ,
849
869
}
@@ -871,6 +891,7 @@ fn bindgen_test_layout_gpr_event() {
871
891
) ;
872
892
}
873
893
#[ repr( C ) ]
894
+ #[ derive( Debug , Copy , Clone ) ]
874
895
pub struct gpr_refcount {
875
896
pub count : gpr_atm ,
876
897
}
@@ -898,6 +919,7 @@ fn bindgen_test_layout_gpr_refcount() {
898
919
) ;
899
920
}
900
921
#[ repr( C ) ]
922
+ #[ derive( Debug , Copy , Clone ) ]
901
923
pub struct gpr_stats_counter {
902
924
pub value : gpr_atm ,
903
925
}
@@ -1468,6 +1490,11 @@ fn bindgen_test_layout_grpc_byte_buffer_grpc_byte_buffer_data_grpc_compressed_bu
1468
1490
)
1469
1491
) ;
1470
1492
}
1493
+ impl :: std:: fmt:: Debug for grpc_byte_buffer_grpc_byte_buffer_data_grpc_compressed_buffer {
1494
+ fn fmt ( & self , f : & mut :: std:: fmt:: Formatter < ' _ > ) -> :: std:: fmt:: Result {
1495
+ write ! ( f , "grpc_byte_buffer_grpc_byte_buffer_data_grpc_compressed_buffer {{ compression: {:?}, slice_buffer: {:?} }}" , self . compression , self . slice_buffer )
1496
+ }
1497
+ }
1471
1498
#[ test]
1472
1499
fn bindgen_test_layout_grpc_byte_buffer_grpc_byte_buffer_data ( ) {
1473
1500
assert_eq ! (
@@ -1513,6 +1540,11 @@ fn bindgen_test_layout_grpc_byte_buffer_grpc_byte_buffer_data() {
1513
1540
)
1514
1541
) ;
1515
1542
}
1543
+ impl :: std:: fmt:: Debug for grpc_byte_buffer_grpc_byte_buffer_data {
1544
+ fn fmt ( & self , f : & mut :: std:: fmt:: Formatter < ' _ > ) -> :: std:: fmt:: Result {
1545
+ write ! ( f, "grpc_byte_buffer_grpc_byte_buffer_data {{ union }}" )
1546
+ }
1547
+ }
1516
1548
#[ test]
1517
1549
fn bindgen_test_layout_grpc_byte_buffer ( ) {
1518
1550
assert_eq ! (
@@ -1556,6 +1588,15 @@ fn bindgen_test_layout_grpc_byte_buffer() {
1556
1588
)
1557
1589
) ;
1558
1590
}
1591
+ impl :: std:: fmt:: Debug for grpc_byte_buffer {
1592
+ fn fmt ( & self , f : & mut :: std:: fmt:: Formatter < ' _ > ) -> :: std:: fmt:: Result {
1593
+ write ! (
1594
+ f,
1595
+ "grpc_byte_buffer {{ reserved: {:?}, type: {:?}, data: {:?} }}" ,
1596
+ self . reserved, self . type_, self . data
1597
+ )
1598
+ }
1599
+ }
1559
1600
#[ repr( C ) ]
1560
1601
#[ derive( Debug , Copy , Clone ) ]
1561
1602
pub struct grpc_completion_queue {
@@ -1777,6 +1818,11 @@ fn bindgen_test_layout_grpc_arg_grpc_arg_value() {
1777
1818
)
1778
1819
) ;
1779
1820
}
1821
+ impl :: std:: fmt:: Debug for grpc_arg_grpc_arg_value {
1822
+ fn fmt ( & self , f : & mut :: std:: fmt:: Formatter < ' _ > ) -> :: std:: fmt:: Result {
1823
+ write ! ( f, "grpc_arg_grpc_arg_value {{ union }}" )
1824
+ }
1825
+ }
1780
1826
#[ test]
1781
1827
fn bindgen_test_layout_grpc_arg ( ) {
1782
1828
assert_eq ! (
@@ -1820,6 +1866,15 @@ fn bindgen_test_layout_grpc_arg() {
1820
1866
)
1821
1867
) ;
1822
1868
}
1869
+ impl :: std:: fmt:: Debug for grpc_arg {
1870
+ fn fmt ( & self , f : & mut :: std:: fmt:: Formatter < ' _ > ) -> :: std:: fmt:: Result {
1871
+ write ! (
1872
+ f,
1873
+ "grpc_arg {{ type: {:?}, key: {:?}, value: {:?} }}" ,
1874
+ self . type_, self . key, self . value
1875
+ )
1876
+ }
1877
+ }
1823
1878
#[ doc = " An array of arguments that can be passed around." ]
1824
1879
#[ doc = "" ]
1825
1880
#[ doc = "Used to set optional channel-level configuration." ]
@@ -2014,6 +2069,15 @@ fn bindgen_test_layout_grpc_metadata() {
2014
2069
)
2015
2070
) ;
2016
2071
}
2072
+ impl :: std:: fmt:: Debug for grpc_metadata {
2073
+ fn fmt ( & self , f : & mut :: std:: fmt:: Formatter < ' _ > ) -> :: std:: fmt:: Result {
2074
+ write ! (
2075
+ f,
2076
+ "grpc_metadata {{ key: {:?}, value: {:?}, flags: {:?}, internal_data: {:?} }}" ,
2077
+ self . key, self . value, self . flags, self . internal_data
2078
+ )
2079
+ }
2080
+ }
2017
2081
#[ repr( u32 ) ]
2018
2082
#[ doc = " The type of completion (for grpc_event)" ]
2019
2083
#[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
@@ -2208,6 +2272,11 @@ fn bindgen_test_layout_grpc_call_details() {
2208
2272
)
2209
2273
) ;
2210
2274
}
2275
+ impl :: std:: fmt:: Debug for grpc_call_details {
2276
+ fn fmt ( & self , f : & mut :: std:: fmt:: Formatter < ' _ > ) -> :: std:: fmt:: Result {
2277
+ write ! ( f , "grpc_call_details {{ method: {:?}, host: {:?}, deadline: {:?}, flags: {:?}, reserved: {:?} }}" , self . method , self . host , self . deadline , self . flags , self . reserved )
2278
+ }
2279
+ }
2211
2280
#[ repr( u32 ) ]
2212
2281
#[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
2213
2282
pub enum grpc_op_type {
@@ -2834,6 +2903,11 @@ fn bindgen_test_layout_grpc_op_grpc_op_data() {
2834
2903
)
2835
2904
) ;
2836
2905
}
2906
+ impl :: std:: fmt:: Debug for grpc_op_grpc_op_data {
2907
+ fn fmt ( & self , f : & mut :: std:: fmt:: Formatter < ' _ > ) -> :: std:: fmt:: Result {
2908
+ write ! ( f, "grpc_op_grpc_op_data {{ union }}" )
2909
+ }
2910
+ }
2837
2911
#[ test]
2838
2912
fn bindgen_test_layout_grpc_op ( ) {
2839
2913
assert_eq ! (
@@ -2887,6 +2961,15 @@ fn bindgen_test_layout_grpc_op() {
2887
2961
)
2888
2962
) ;
2889
2963
}
2964
+ impl :: std:: fmt:: Debug for grpc_op {
2965
+ fn fmt ( & self , f : & mut :: std:: fmt:: Formatter < ' _ > ) -> :: std:: fmt:: Result {
2966
+ write ! (
2967
+ f,
2968
+ "grpc_op {{ op: {:?}, flags: {:?}, reserved: {:?}, data: {:?} }}" ,
2969
+ self . op, self . flags, self . reserved, self . data
2970
+ )
2971
+ }
2972
+ }
2890
2973
#[ doc = " Information requested from the channel." ]
2891
2974
#[ repr( C ) ]
2892
2975
#[ derive( Debug , Copy , Clone ) ]
@@ -5429,6 +5512,14 @@ fn bindgen_test_layout_grpc_byte_buffer_reader_grpc_byte_buffer_reader_current()
5429
5512
)
5430
5513
) ;
5431
5514
}
5515
+ impl :: std:: fmt:: Debug for grpc_byte_buffer_reader_grpc_byte_buffer_reader_current {
5516
+ fn fmt ( & self , f : & mut :: std:: fmt:: Formatter < ' _ > ) -> :: std:: fmt:: Result {
5517
+ write ! (
5518
+ f,
5519
+ "grpc_byte_buffer_reader_grpc_byte_buffer_reader_current {{ union }}"
5520
+ )
5521
+ }
5522
+ }
5432
5523
#[ test]
5433
5524
fn bindgen_test_layout_grpc_byte_buffer_reader ( ) {
5434
5525
assert_eq ! (
@@ -5476,6 +5567,15 @@ fn bindgen_test_layout_grpc_byte_buffer_reader() {
5476
5567
)
5477
5568
) ;
5478
5569
}
5570
+ impl :: std:: fmt:: Debug for grpc_byte_buffer_reader {
5571
+ fn fmt ( & self , f : & mut :: std:: fmt:: Formatter < ' _ > ) -> :: std:: fmt:: Result {
5572
+ write ! (
5573
+ f,
5574
+ "grpc_byte_buffer_reader {{ buffer_in: {:?}, buffer_out: {:?}, current: {:?} }}" ,
5575
+ self . buffer_in, self . buffer_out, self . current
5576
+ )
5577
+ }
5578
+ }
5479
5579
#[ repr( C ) ]
5480
5580
#[ derive( Copy , Clone ) ]
5481
5581
pub struct grpcwrap_batch_context {
@@ -5589,6 +5689,11 @@ fn bindgen_test_layout_grpcwrap_batch_context__bindgen_ty_2() {
5589
5689
)
5590
5690
) ;
5591
5691
}
5692
+ impl :: std:: fmt:: Debug for grpcwrap_batch_context__bindgen_ty_2 {
5693
+ fn fmt ( & self , f : & mut :: std:: fmt:: Formatter < ' _ > ) -> :: std:: fmt:: Result {
5694
+ write ! ( f , "grpcwrap_batch_context__bindgen_ty_2 {{ trailing_metadata: {:?}, status: {:?}, status_details: {:?} }}" , self . trailing_metadata , self . status , self . status_details )
5695
+ }
5696
+ }
5592
5697
#[ test]
5593
5698
fn bindgen_test_layout_grpcwrap_batch_context ( ) {
5594
5699
assert_eq ! (
@@ -5691,6 +5796,11 @@ fn bindgen_test_layout_grpcwrap_batch_context() {
5691
5796
)
5692
5797
) ;
5693
5798
}
5799
+ impl :: std:: fmt:: Debug for grpcwrap_batch_context {
5800
+ fn fmt ( & self , f : & mut :: std:: fmt:: Formatter < ' _ > ) -> :: std:: fmt:: Result {
5801
+ write ! ( f , "grpcwrap_batch_context {{ send_initial_metadata: {:?}, send_message: {:?}, send_status_from_server: {:?}, recv_initial_metadata: {:?}, recv_message: {:?}, recv_status_on_client: {:?}, recv_close_on_server_cancelled: {:?} }}" , self . send_initial_metadata , self . send_message , self . send_status_from_server , self . recv_initial_metadata , self . recv_message , self . recv_status_on_client , self . recv_close_on_server_cancelled )
5802
+ }
5803
+ }
5694
5804
extern "C" {
5695
5805
pub fn grpcwrap_batch_context_create ( ) -> * mut grpcwrap_batch_context ;
5696
5806
}
@@ -5752,6 +5862,11 @@ fn bindgen_test_layout_grpcwrap_request_call_context() {
5752
5862
)
5753
5863
) ;
5754
5864
}
5865
+ impl :: std:: fmt:: Debug for grpcwrap_request_call_context {
5866
+ fn fmt ( & self , f : & mut :: std:: fmt:: Formatter < ' _ > ) -> :: std:: fmt:: Result {
5867
+ write ! ( f , "grpcwrap_request_call_context {{ call: {:?}, call_details: {:?}, request_metadata: {:?} }}" , self . call , self . call_details , self . request_metadata )
5868
+ }
5869
+ }
5755
5870
extern "C" {
5756
5871
pub fn grpcwrap_request_call_context_create ( ) -> * mut grpcwrap_request_call_context ;
5757
5872
}
0 commit comments