1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
#![allow(
unused_parens, unused_mut, nonstandard_style, )]
#![recursion_limit = "512"]
#[cfg(target_os = "fuchsia")]
#[allow(unused_imports)]
use fuchsia_zircon as zx;
#[allow(unused_imports)]
use {
bitflags::bitflags,
fidl::{
client::QueryResponseFut,
encoding::zerocopy,
endpoints::{ControlHandle as _, Responder as _},
fidl_bits, fidl_enum, fidl_struct, fidl_table, fidl_union,
},
fuchsia_zircon_status as zx_status,
futures::future::{self, MaybeDone, TryFutureExt},
};
#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
pub struct Config {
pub bind_services: Vec<String>,
pub enable_component_event_provider: bool,
pub enable_event_source: bool,
pub enable_klog: bool,
pub enable_log_connector: bool,
pub is_unattributed: bool,
pub log_to_debuglog: bool,
pub logs_max_cached_original_bytes: u64,
pub maximum_concurrent_snapshots_per_reader: u64,
pub num_threads: u64,
pub pipelines_path: String,
}
impl fidl::encoding::TopLevel for Config {}
fidl_struct! {
name: Config,
members: [
bind_services {
ty: fidl::encoding::UnboundedVector<fidl::encoding::UnboundedString>,
index: 0,
typevar: T0,
offset_v1: 0,
offset_v2: 0,
},
enable_component_event_provider {
ty: bool,
index: 1,
typevar: T1,
offset_v1: 16,
offset_v2: 16,
},
enable_event_source {
ty: bool,
index: 2,
typevar: T2,
offset_v1: 17,
offset_v2: 17,
},
enable_klog {
ty: bool,
index: 3,
typevar: T3,
offset_v1: 18,
offset_v2: 18,
},
enable_log_connector {
ty: bool,
index: 4,
typevar: T4,
offset_v1: 19,
offset_v2: 19,
},
is_unattributed {
ty: bool,
index: 5,
typevar: T5,
offset_v1: 20,
offset_v2: 20,
},
log_to_debuglog {
ty: bool,
index: 6,
typevar: T6,
offset_v1: 21,
offset_v2: 21,
},
logs_max_cached_original_bytes {
ty: u64,
index: 7,
typevar: T7,
offset_v1: 24,
offset_v2: 24,
},
maximum_concurrent_snapshots_per_reader {
ty: u64,
index: 8,
typevar: T8,
offset_v1: 32,
offset_v2: 32,
},
num_threads {
ty: u64,
index: 9,
typevar: T9,
offset_v1: 40,
offset_v2: 40,
},
pipelines_path {
ty: fidl::encoding::UnboundedString,
index: 10,
typevar: T10,
offset_v1: 48,
offset_v2: 48,
},
],
padding_v1: [
{
ty: u64,
offset: 16,
mask: 0xffff000000000000u64,
},
],
padding_v2: [
{
ty: u64,
offset: 16,
mask: 0xffff000000000000u64,
},
],
size_v1: 64,
size_v2: 64,
align_v1: 8,
align_v2: 8,
}