1pub mod envelope {
6 #[derive(Copy, Clone)]
7 pub struct Owned(());
8 impl ::capnp::introspect::Introspect for Owned {
9 fn introspect() -> ::capnp::introspect::Type {
10 ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema {
11 generic: &_private::RAW_SCHEMA,
12 field_types: _private::get_field_types,
13 annotation_types: _private::get_annotation_types,
14 })
15 .into()
16 }
17 }
18 impl ::capnp::traits::Owned for Owned {
19 type Reader<'a> = Reader<'a>;
20 type Builder<'a> = Builder<'a>;
21 }
22 impl ::capnp::traits::OwnedStruct for Owned {
23 type Reader<'a> = Reader<'a>;
24 type Builder<'a> = Builder<'a>;
25 }
26 impl ::capnp::traits::Pipelined for Owned {
27 type Pipeline = Pipeline;
28 }
29
30 pub struct Reader<'a> {
31 reader: ::capnp::private::layout::StructReader<'a>,
32 }
33 impl<'a> ::core::marker::Copy for Reader<'a> {}
34 impl<'a> ::core::clone::Clone for Reader<'a> {
35 fn clone(&self) -> Self {
36 *self
37 }
38 }
39
40 impl<'a> ::capnp::traits::HasTypeId for Reader<'a> {
41 const TYPE_ID: u64 = _private::TYPE_ID;
42 }
43 impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> {
44 fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self {
45 Self { reader }
46 }
47 }
48
49 impl<'a> ::core::convert::From<Reader<'a>> for ::capnp::dynamic_value::Reader<'a> {
50 fn from(reader: Reader<'a>) -> Self {
51 Self::Struct(::capnp::dynamic_struct::Reader::new(
52 reader.reader,
53 ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema {
54 generic: &_private::RAW_SCHEMA,
55 field_types: _private::get_field_types,
56 annotation_types: _private::get_annotation_types,
57 }),
58 ))
59 }
60 }
61
62 impl<'a> ::core::fmt::Debug for Reader<'a> {
63 fn fmt(
64 &self,
65 f: &mut ::core::fmt::Formatter<'_>,
66 ) -> ::core::result::Result<(), ::core::fmt::Error> {
67 core::fmt::Debug::fmt(
68 &::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self),
69 f,
70 )
71 }
72 }
73
74 impl<'a> ::capnp::traits::FromPointerReader<'a> for Reader<'a> {
75 fn get_from_pointer(
76 reader: &::capnp::private::layout::PointerReader<'a>,
77 default: ::core::option::Option<&'a [::capnp::Word]>,
78 ) -> ::capnp::Result<Self> {
79 ::core::result::Result::Ok(reader.get_struct(default)?.into())
80 }
81 }
82
83 impl<'a> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a> {
84 fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> {
85 self.reader
86 }
87 }
88
89 impl<'a> ::capnp::traits::Imbue<'a> for Reader<'a> {
90 fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) {
91 self.reader
92 .imbue(::capnp::private::layout::CapTableReader::Plain(cap_table))
93 }
94 }
95
96 impl<'a> Reader<'a> {
97 pub fn reborrow(&self) -> Reader<'_> {
98 Self { ..*self }
99 }
100
101 pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> {
102 self.reader.total_size()
103 }
104 #[inline]
105 pub fn get_cell_id(self) -> ::capnp::Result<::capnp::data::Reader<'a>> {
106 ::capnp::traits::FromPointerReader::get_from_pointer(
107 &self.reader.get_pointer_field(0),
108 ::core::option::Option::None,
109 )
110 }
111 #[inline]
112 pub fn has_cell_id(&self) -> bool {
113 !self.reader.get_pointer_field(0).is_null()
114 }
115 #[inline]
116 pub fn get_service(self) -> u8 {
117 self.reader.get_data_field::<u8>(0)
118 }
119 #[inline]
120 pub fn get_type(self) -> u16 {
121 self.reader.get_data_field::<u16>(1)
122 }
123 #[inline]
124 pub fn get_rendez_vous_id(self) -> u64 {
125 self.reader.get_data_field::<u64>(1)
126 }
127 #[inline]
128 pub fn get_from_node_id(self) -> ::capnp::Result<::capnp::text::Reader<'a>> {
129 ::capnp::traits::FromPointerReader::get_from_pointer(
130 &self.reader.get_pointer_field(1),
131 ::core::option::Option::None,
132 )
133 }
134 #[inline]
135 pub fn has_from_node_id(&self) -> bool {
136 !self.reader.get_pointer_field(1).is_null()
137 }
138 #[inline]
139 pub fn get_data(self) -> ::capnp::Result<::capnp::data::Reader<'a>> {
140 ::capnp::traits::FromPointerReader::get_from_pointer(
141 &self.reader.get_pointer_field(2),
142 ::core::option::Option::None,
143 )
144 }
145 #[inline]
146 pub fn has_data(&self) -> bool {
147 !self.reader.get_pointer_field(2).is_null()
148 }
149 }
150
151 pub struct Builder<'a> {
152 builder: ::capnp::private::layout::StructBuilder<'a>,
153 }
154 impl<'a> ::capnp::traits::HasStructSize for Builder<'a> {
155 const STRUCT_SIZE: ::capnp::private::layout::StructSize =
156 ::capnp::private::layout::StructSize {
157 data: 2,
158 pointers: 3,
159 };
160 }
161 impl<'a> ::capnp::traits::HasTypeId for Builder<'a> {
162 const TYPE_ID: u64 = _private::TYPE_ID;
163 }
164 impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> {
165 fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
166 Self { builder }
167 }
168 }
169
170 impl<'a> ::core::convert::From<Builder<'a>> for ::capnp::dynamic_value::Builder<'a> {
171 fn from(builder: Builder<'a>) -> Self {
172 Self::Struct(::capnp::dynamic_struct::Builder::new(
173 builder.builder,
174 ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema {
175 generic: &_private::RAW_SCHEMA,
176 field_types: _private::get_field_types,
177 annotation_types: _private::get_annotation_types,
178 }),
179 ))
180 }
181 }
182
183 impl<'a> ::capnp::traits::ImbueMut<'a> for Builder<'a> {
184 fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) {
185 self.builder
186 .imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table))
187 }
188 }
189
190 impl<'a> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a> {
191 fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self {
192 builder
193 .init_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE)
194 .into()
195 }
196 fn get_from_pointer(
197 builder: ::capnp::private::layout::PointerBuilder<'a>,
198 default: ::core::option::Option<&'a [::capnp::Word]>,
199 ) -> ::capnp::Result<Self> {
200 ::core::result::Result::Ok(
201 builder
202 .get_struct(
203 <Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE,
204 default,
205 )?
206 .into(),
207 )
208 }
209 }
210
211 impl<'a> ::capnp::traits::SetterInput<Owned> for Reader<'a> {
212 fn set_pointer_builder(
213 mut pointer: ::capnp::private::layout::PointerBuilder<'_>,
214 value: Self,
215 canonicalize: bool,
216 ) -> ::capnp::Result<()> {
217 pointer.set_struct(&value.reader, canonicalize)
218 }
219 }
220
221 impl<'a> Builder<'a> {
222 pub fn into_reader(self) -> Reader<'a> {
223 self.builder.into_reader().into()
224 }
225 pub fn reborrow(&mut self) -> Builder<'_> {
226 Builder {
227 builder: self.builder.reborrow(),
228 }
229 }
230 pub fn reborrow_as_reader(&self) -> Reader<'_> {
231 self.builder.as_reader().into()
232 }
233
234 pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> {
235 self.builder.as_reader().total_size()
236 }
237 #[inline]
238 pub fn get_cell_id(self) -> ::capnp::Result<::capnp::data::Builder<'a>> {
239 ::capnp::traits::FromPointerBuilder::get_from_pointer(
240 self.builder.get_pointer_field(0),
241 ::core::option::Option::None,
242 )
243 }
244 #[inline]
245 pub fn set_cell_id(&mut self, value: ::capnp::data::Reader<'_>) {
246 self.builder.reborrow().get_pointer_field(0).set_data(value);
247 }
248 #[inline]
249 pub fn init_cell_id(self, size: u32) -> ::capnp::data::Builder<'a> {
250 self.builder.get_pointer_field(0).init_data(size)
251 }
252 #[inline]
253 pub fn has_cell_id(&self) -> bool {
254 !self.builder.is_pointer_field_null(0)
255 }
256 #[inline]
257 pub fn get_service(self) -> u8 {
258 self.builder.get_data_field::<u8>(0)
259 }
260 #[inline]
261 pub fn set_service(&mut self, value: u8) {
262 self.builder.set_data_field::<u8>(0, value);
263 }
264 #[inline]
265 pub fn get_type(self) -> u16 {
266 self.builder.get_data_field::<u16>(1)
267 }
268 #[inline]
269 pub fn set_type(&mut self, value: u16) {
270 self.builder.set_data_field::<u16>(1, value);
271 }
272 #[inline]
273 pub fn get_rendez_vous_id(self) -> u64 {
274 self.builder.get_data_field::<u64>(1)
275 }
276 #[inline]
277 pub fn set_rendez_vous_id(&mut self, value: u64) {
278 self.builder.set_data_field::<u64>(1, value);
279 }
280 #[inline]
281 pub fn get_from_node_id(self) -> ::capnp::Result<::capnp::text::Builder<'a>> {
282 ::capnp::traits::FromPointerBuilder::get_from_pointer(
283 self.builder.get_pointer_field(1),
284 ::core::option::Option::None,
285 )
286 }
287 #[inline]
288 pub fn set_from_node_id(
289 &mut self,
290 value: impl ::capnp::traits::SetterInput<::capnp::text::Owned>,
291 ) {
292 ::capnp::traits::SetterInput::set_pointer_builder(
293 self.builder.reborrow().get_pointer_field(1),
294 value,
295 false,
296 )
297 .unwrap()
298 }
299 #[inline]
300 pub fn init_from_node_id(self, size: u32) -> ::capnp::text::Builder<'a> {
301 self.builder.get_pointer_field(1).init_text(size)
302 }
303 #[inline]
304 pub fn has_from_node_id(&self) -> bool {
305 !self.builder.is_pointer_field_null(1)
306 }
307 #[inline]
308 pub fn get_data(self) -> ::capnp::Result<::capnp::data::Builder<'a>> {
309 ::capnp::traits::FromPointerBuilder::get_from_pointer(
310 self.builder.get_pointer_field(2),
311 ::core::option::Option::None,
312 )
313 }
314 #[inline]
315 pub fn set_data(&mut self, value: ::capnp::data::Reader<'_>) {
316 self.builder.reborrow().get_pointer_field(2).set_data(value);
317 }
318 #[inline]
319 pub fn init_data(self, size: u32) -> ::capnp::data::Builder<'a> {
320 self.builder.get_pointer_field(2).init_data(size)
321 }
322 #[inline]
323 pub fn has_data(&self) -> bool {
324 !self.builder.is_pointer_field_null(2)
325 }
326 }
327
328 pub struct Pipeline {
329 _typeless: ::capnp::any_pointer::Pipeline,
330 }
331 impl ::capnp::capability::FromTypelessPipeline for Pipeline {
332 fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
333 Self {
334 _typeless: typeless,
335 }
336 }
337 }
338 impl Pipeline {}
339 mod _private {
340 pub static ENCODED_NODE: [::capnp::Word; 110] = [
341 ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
342 ::capnp::word(73, 132, 161, 238, 4, 97, 109, 195),
343 ::capnp::word(18, 0, 0, 0, 1, 0, 2, 0),
344 ::capnp::word(121, 148, 153, 240, 116, 143, 229, 142),
345 ::capnp::word(3, 0, 7, 0, 0, 0, 0, 0),
346 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
347 ::capnp::word(21, 0, 0, 0, 218, 0, 0, 0),
348 ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0),
349 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
350 ::capnp::word(29, 0, 0, 0, 87, 1, 0, 0),
351 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
352 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
353 ::capnp::word(99, 97, 112, 110, 47, 99, 111, 109),
354 ::capnp::word(109, 111, 110, 46, 99, 97, 112, 110),
355 ::capnp::word(112, 58, 69, 110, 118, 101, 108, 111),
356 ::capnp::word(112, 101, 0, 0, 0, 0, 0, 0),
357 ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0),
358 ::capnp::word(24, 0, 0, 0, 3, 0, 4, 0),
359 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
360 ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0),
361 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
362 ::capnp::word(153, 0, 0, 0, 58, 0, 0, 0),
363 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
364 ::capnp::word(148, 0, 0, 0, 3, 0, 1, 0),
365 ::capnp::word(160, 0, 0, 0, 2, 0, 1, 0),
366 ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0),
367 ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0),
368 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
369 ::capnp::word(157, 0, 0, 0, 66, 0, 0, 0),
370 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
371 ::capnp::word(152, 0, 0, 0, 3, 0, 1, 0),
372 ::capnp::word(164, 0, 0, 0, 2, 0, 1, 0),
373 ::capnp::word(2, 0, 0, 0, 1, 0, 0, 0),
374 ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0),
375 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
376 ::capnp::word(161, 0, 0, 0, 42, 0, 0, 0),
377 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
378 ::capnp::word(156, 0, 0, 0, 3, 0, 1, 0),
379 ::capnp::word(168, 0, 0, 0, 2, 0, 1, 0),
380 ::capnp::word(3, 0, 0, 0, 1, 0, 0, 0),
381 ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0),
382 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
383 ::capnp::word(165, 0, 0, 0, 106, 0, 0, 0),
384 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
385 ::capnp::word(164, 0, 0, 0, 3, 0, 1, 0),
386 ::capnp::word(176, 0, 0, 0, 2, 0, 1, 0),
387 ::capnp::word(4, 0, 0, 0, 1, 0, 0, 0),
388 ::capnp::word(0, 0, 1, 0, 4, 0, 0, 0),
389 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
390 ::capnp::word(173, 0, 0, 0, 90, 0, 0, 0),
391 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
392 ::capnp::word(172, 0, 0, 0, 3, 0, 1, 0),
393 ::capnp::word(184, 0, 0, 0, 2, 0, 1, 0),
394 ::capnp::word(5, 0, 0, 0, 2, 0, 0, 0),
395 ::capnp::word(0, 0, 1, 0, 5, 0, 0, 0),
396 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
397 ::capnp::word(181, 0, 0, 0, 42, 0, 0, 0),
398 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
399 ::capnp::word(176, 0, 0, 0, 3, 0, 1, 0),
400 ::capnp::word(188, 0, 0, 0, 2, 0, 1, 0),
401 ::capnp::word(99, 101, 108, 108, 73, 100, 0, 0),
402 ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
403 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
404 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
405 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
406 ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
407 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
408 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
409 ::capnp::word(115, 101, 114, 118, 105, 99, 101, 0),
410 ::capnp::word(6, 0, 0, 0, 0, 0, 0, 0),
411 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
412 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
413 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
414 ::capnp::word(6, 0, 0, 0, 0, 0, 0, 0),
415 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
416 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
417 ::capnp::word(116, 121, 112, 101, 0, 0, 0, 0),
418 ::capnp::word(7, 0, 0, 0, 0, 0, 0, 0),
419 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
420 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
421 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
422 ::capnp::word(7, 0, 0, 0, 0, 0, 0, 0),
423 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
424 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
425 ::capnp::word(114, 101, 110, 100, 101, 122, 86, 111),
426 ::capnp::word(117, 115, 73, 100, 0, 0, 0, 0),
427 ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0),
428 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
429 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
430 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
431 ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0),
432 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
433 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
434 ::capnp::word(102, 114, 111, 109, 78, 111, 100, 101),
435 ::capnp::word(73, 100, 0, 0, 0, 0, 0, 0),
436 ::capnp::word(12, 0, 0, 0, 0, 0, 0, 0),
437 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
438 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
439 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
440 ::capnp::word(12, 0, 0, 0, 0, 0, 0, 0),
441 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
442 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
443 ::capnp::word(100, 97, 116, 97, 0, 0, 0, 0),
444 ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
445 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
446 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
447 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
448 ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
449 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
450 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
451 ];
452 pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
453 match index {
454 0 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(),
455 1 => <u8 as ::capnp::introspect::Introspect>::introspect(),
456 2 => <u16 as ::capnp::introspect::Introspect>::introspect(),
457 3 => <u64 as ::capnp::introspect::Introspect>::introspect(),
458 4 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(),
459 5 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(),
460 _ => panic!("invalid field index {}", index),
461 }
462 }
463 pub fn get_annotation_types(
464 child_index: Option<u16>,
465 index: u32,
466 ) -> ::capnp::introspect::Type {
467 panic!("invalid annotation indices ({:?}, {}) ", child_index, index)
468 }
469 pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema =
470 ::capnp::introspect::RawStructSchema {
471 encoded_node: &ENCODED_NODE,
472 nonunion_members: NONUNION_MEMBERS,
473 members_by_discriminant: MEMBERS_BY_DISCRIMINANT,
474 members_by_name: MEMBERS_BY_NAME,
475 };
476 pub static NONUNION_MEMBERS: &[u16] = &[0, 1, 2, 3, 4, 5];
477 pub static MEMBERS_BY_DISCRIMINANT: &[u16] = &[];
478 pub static MEMBERS_BY_NAME: &[u16] = &[0, 5, 4, 3, 1, 2];
479 pub const TYPE_ID: u64 = 0xc36d_6104_eea1_8449;
480 }
481}
482
483pub mod node {
484 #[derive(Copy, Clone)]
485 pub struct Owned(());
486 impl ::capnp::introspect::Introspect for Owned {
487 fn introspect() -> ::capnp::introspect::Type {
488 ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema {
489 generic: &_private::RAW_SCHEMA,
490 field_types: _private::get_field_types,
491 annotation_types: _private::get_annotation_types,
492 })
493 .into()
494 }
495 }
496 impl ::capnp::traits::Owned for Owned {
497 type Reader<'a> = Reader<'a>;
498 type Builder<'a> = Builder<'a>;
499 }
500 impl ::capnp::traits::OwnedStruct for Owned {
501 type Reader<'a> = Reader<'a>;
502 type Builder<'a> = Builder<'a>;
503 }
504 impl ::capnp::traits::Pipelined for Owned {
505 type Pipeline = Pipeline;
506 }
507
508 pub struct Reader<'a> {
509 reader: ::capnp::private::layout::StructReader<'a>,
510 }
511 impl<'a> ::core::marker::Copy for Reader<'a> {}
512 impl<'a> ::core::clone::Clone for Reader<'a> {
513 fn clone(&self) -> Self {
514 *self
515 }
516 }
517
518 impl<'a> ::capnp::traits::HasTypeId for Reader<'a> {
519 const TYPE_ID: u64 = _private::TYPE_ID;
520 }
521 impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> {
522 fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self {
523 Self { reader }
524 }
525 }
526
527 impl<'a> ::core::convert::From<Reader<'a>> for ::capnp::dynamic_value::Reader<'a> {
528 fn from(reader: Reader<'a>) -> Self {
529 Self::Struct(::capnp::dynamic_struct::Reader::new(
530 reader.reader,
531 ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema {
532 generic: &_private::RAW_SCHEMA,
533 field_types: _private::get_field_types,
534 annotation_types: _private::get_annotation_types,
535 }),
536 ))
537 }
538 }
539
540 impl<'a> ::core::fmt::Debug for Reader<'a> {
541 fn fmt(
542 &self,
543 f: &mut ::core::fmt::Formatter<'_>,
544 ) -> ::core::result::Result<(), ::core::fmt::Error> {
545 core::fmt::Debug::fmt(
546 &::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self),
547 f,
548 )
549 }
550 }
551
552 impl<'a> ::capnp::traits::FromPointerReader<'a> for Reader<'a> {
553 fn get_from_pointer(
554 reader: &::capnp::private::layout::PointerReader<'a>,
555 default: ::core::option::Option<&'a [::capnp::Word]>,
556 ) -> ::capnp::Result<Self> {
557 ::core::result::Result::Ok(reader.get_struct(default)?.into())
558 }
559 }
560
561 impl<'a> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a> {
562 fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> {
563 self.reader
564 }
565 }
566
567 impl<'a> ::capnp::traits::Imbue<'a> for Reader<'a> {
568 fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) {
569 self.reader
570 .imbue(::capnp::private::layout::CapTableReader::Plain(cap_table))
571 }
572 }
573
574 impl<'a> Reader<'a> {
575 pub fn reborrow(&self) -> Reader<'_> {
576 Self { ..*self }
577 }
578
579 pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> {
580 self.reader.total_size()
581 }
582 #[inline]
583 pub fn get_id(self) -> ::capnp::Result<::capnp::text::Reader<'a>> {
584 ::capnp::traits::FromPointerReader::get_from_pointer(
585 &self.reader.get_pointer_field(0),
586 ::core::option::Option::None,
587 )
588 }
589 #[inline]
590 pub fn has_id(&self) -> bool {
591 !self.reader.get_pointer_field(0).is_null()
592 }
593 #[inline]
594 pub fn get_public_key(self) -> ::capnp::Result<::capnp::text::Reader<'a>> {
595 ::capnp::traits::FromPointerReader::get_from_pointer(
596 &self.reader.get_pointer_field(1),
597 ::core::option::Option::None,
598 )
599 }
600 #[inline]
601 pub fn has_public_key(&self) -> bool {
602 !self.reader.get_pointer_field(1).is_null()
603 }
604 #[inline]
605 pub fn get_address(
606 self,
607 ) -> ::capnp::Result<
608 ::capnp::struct_list::Reader<'a, crate::common_capnp::node_address::Owned>,
609 > {
610 ::capnp::traits::FromPointerReader::get_from_pointer(
611 &self.reader.get_pointer_field(2),
612 ::core::option::Option::None,
613 )
614 }
615 #[inline]
616 pub fn has_address(&self) -> bool {
617 !self.reader.get_pointer_field(2).is_null()
618 }
619 }
620
621 pub struct Builder<'a> {
622 builder: ::capnp::private::layout::StructBuilder<'a>,
623 }
624 impl<'a> ::capnp::traits::HasStructSize for Builder<'a> {
625 const STRUCT_SIZE: ::capnp::private::layout::StructSize =
626 ::capnp::private::layout::StructSize {
627 data: 0,
628 pointers: 3,
629 };
630 }
631 impl<'a> ::capnp::traits::HasTypeId for Builder<'a> {
632 const TYPE_ID: u64 = _private::TYPE_ID;
633 }
634 impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> {
635 fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
636 Self { builder }
637 }
638 }
639
640 impl<'a> ::core::convert::From<Builder<'a>> for ::capnp::dynamic_value::Builder<'a> {
641 fn from(builder: Builder<'a>) -> Self {
642 Self::Struct(::capnp::dynamic_struct::Builder::new(
643 builder.builder,
644 ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema {
645 generic: &_private::RAW_SCHEMA,
646 field_types: _private::get_field_types,
647 annotation_types: _private::get_annotation_types,
648 }),
649 ))
650 }
651 }
652
653 impl<'a> ::capnp::traits::ImbueMut<'a> for Builder<'a> {
654 fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) {
655 self.builder
656 .imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table))
657 }
658 }
659
660 impl<'a> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a> {
661 fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self {
662 builder
663 .init_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE)
664 .into()
665 }
666 fn get_from_pointer(
667 builder: ::capnp::private::layout::PointerBuilder<'a>,
668 default: ::core::option::Option<&'a [::capnp::Word]>,
669 ) -> ::capnp::Result<Self> {
670 ::core::result::Result::Ok(
671 builder
672 .get_struct(
673 <Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE,
674 default,
675 )?
676 .into(),
677 )
678 }
679 }
680
681 impl<'a> ::capnp::traits::SetterInput<Owned> for Reader<'a> {
682 fn set_pointer_builder(
683 mut pointer: ::capnp::private::layout::PointerBuilder<'_>,
684 value: Self,
685 canonicalize: bool,
686 ) -> ::capnp::Result<()> {
687 pointer.set_struct(&value.reader, canonicalize)
688 }
689 }
690
691 impl<'a> Builder<'a> {
692 pub fn into_reader(self) -> Reader<'a> {
693 self.builder.into_reader().into()
694 }
695 pub fn reborrow(&mut self) -> Builder<'_> {
696 Builder {
697 builder: self.builder.reborrow(),
698 }
699 }
700 pub fn reborrow_as_reader(&self) -> Reader<'_> {
701 self.builder.as_reader().into()
702 }
703
704 pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> {
705 self.builder.as_reader().total_size()
706 }
707 #[inline]
708 pub fn get_id(self) -> ::capnp::Result<::capnp::text::Builder<'a>> {
709 ::capnp::traits::FromPointerBuilder::get_from_pointer(
710 self.builder.get_pointer_field(0),
711 ::core::option::Option::None,
712 )
713 }
714 #[inline]
715 pub fn set_id(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text::Owned>) {
716 ::capnp::traits::SetterInput::set_pointer_builder(
717 self.builder.reborrow().get_pointer_field(0),
718 value,
719 false,
720 )
721 .unwrap()
722 }
723 #[inline]
724 pub fn init_id(self, size: u32) -> ::capnp::text::Builder<'a> {
725 self.builder.get_pointer_field(0).init_text(size)
726 }
727 #[inline]
728 pub fn has_id(&self) -> bool {
729 !self.builder.is_pointer_field_null(0)
730 }
731 #[inline]
732 pub fn get_public_key(self) -> ::capnp::Result<::capnp::text::Builder<'a>> {
733 ::capnp::traits::FromPointerBuilder::get_from_pointer(
734 self.builder.get_pointer_field(1),
735 ::core::option::Option::None,
736 )
737 }
738 #[inline]
739 pub fn set_public_key(
740 &mut self,
741 value: impl ::capnp::traits::SetterInput<::capnp::text::Owned>,
742 ) {
743 ::capnp::traits::SetterInput::set_pointer_builder(
744 self.builder.reborrow().get_pointer_field(1),
745 value,
746 false,
747 )
748 .unwrap()
749 }
750 #[inline]
751 pub fn init_public_key(self, size: u32) -> ::capnp::text::Builder<'a> {
752 self.builder.get_pointer_field(1).init_text(size)
753 }
754 #[inline]
755 pub fn has_public_key(&self) -> bool {
756 !self.builder.is_pointer_field_null(1)
757 }
758 #[inline]
759 pub fn get_address(
760 self,
761 ) -> ::capnp::Result<
762 ::capnp::struct_list::Builder<'a, crate::common_capnp::node_address::Owned>,
763 > {
764 ::capnp::traits::FromPointerBuilder::get_from_pointer(
765 self.builder.get_pointer_field(2),
766 ::core::option::Option::None,
767 )
768 }
769 #[inline]
770 pub fn set_address(
771 &mut self,
772 value: ::capnp::struct_list::Reader<'_, crate::common_capnp::node_address::Owned>,
773 ) -> ::capnp::Result<()> {
774 ::capnp::traits::SetterInput::set_pointer_builder(
775 self.builder.reborrow().get_pointer_field(2),
776 value,
777 false,
778 )
779 }
780 #[inline]
781 pub fn init_address(
782 self,
783 size: u32,
784 ) -> ::capnp::struct_list::Builder<'a, crate::common_capnp::node_address::Owned> {
785 ::capnp::traits::FromPointerBuilder::init_pointer(
786 self.builder.get_pointer_field(2),
787 size,
788 )
789 }
790 #[inline]
791 pub fn has_address(&self) -> bool {
792 !self.builder.is_pointer_field_null(2)
793 }
794 }
795
796 pub struct Pipeline {
797 _typeless: ::capnp::any_pointer::Pipeline,
798 }
799 impl ::capnp::capability::FromTypelessPipeline for Pipeline {
800 fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
801 Self {
802 _typeless: typeless,
803 }
804 }
805 }
806 impl Pipeline {}
807 mod _private {
808 pub static ENCODED_NODE: [::capnp::Word; 67] = [
809 ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
810 ::capnp::word(49, 182, 130, 132, 107, 79, 130, 213),
811 ::capnp::word(18, 0, 0, 0, 1, 0, 0, 0),
812 ::capnp::word(121, 148, 153, 240, 116, 143, 229, 142),
813 ::capnp::word(3, 0, 7, 0, 0, 0, 0, 0),
814 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
815 ::capnp::word(21, 0, 0, 0, 186, 0, 0, 0),
816 ::capnp::word(29, 0, 0, 0, 7, 0, 0, 0),
817 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
818 ::capnp::word(25, 0, 0, 0, 175, 0, 0, 0),
819 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
820 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
821 ::capnp::word(99, 97, 112, 110, 47, 99, 111, 109),
822 ::capnp::word(109, 111, 110, 46, 99, 97, 112, 110),
823 ::capnp::word(112, 58, 78, 111, 100, 101, 0, 0),
824 ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0),
825 ::capnp::word(12, 0, 0, 0, 3, 0, 4, 0),
826 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
827 ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0),
828 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
829 ::capnp::word(69, 0, 0, 0, 26, 0, 0, 0),
830 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
831 ::capnp::word(64, 0, 0, 0, 3, 0, 1, 0),
832 ::capnp::word(76, 0, 0, 0, 2, 0, 1, 0),
833 ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0),
834 ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0),
835 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
836 ::capnp::word(73, 0, 0, 0, 82, 0, 0, 0),
837 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
838 ::capnp::word(72, 0, 0, 0, 3, 0, 1, 0),
839 ::capnp::word(84, 0, 0, 0, 2, 0, 1, 0),
840 ::capnp::word(2, 0, 0, 0, 2, 0, 0, 0),
841 ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0),
842 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
843 ::capnp::word(81, 0, 0, 0, 66, 0, 0, 0),
844 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
845 ::capnp::word(76, 0, 0, 0, 3, 0, 1, 0),
846 ::capnp::word(104, 0, 0, 0, 2, 0, 1, 0),
847 ::capnp::word(105, 100, 0, 0, 0, 0, 0, 0),
848 ::capnp::word(12, 0, 0, 0, 0, 0, 0, 0),
849 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
850 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
851 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
852 ::capnp::word(12, 0, 0, 0, 0, 0, 0, 0),
853 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
854 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
855 ::capnp::word(112, 117, 98, 108, 105, 99, 75, 101),
856 ::capnp::word(121, 0, 0, 0, 0, 0, 0, 0),
857 ::capnp::word(12, 0, 0, 0, 0, 0, 0, 0),
858 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
859 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
860 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
861 ::capnp::word(12, 0, 0, 0, 0, 0, 0, 0),
862 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
863 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
864 ::capnp::word(97, 100, 100, 114, 101, 115, 115, 0),
865 ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
866 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
867 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
868 ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
869 ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
870 ::capnp::word(18, 12, 97, 46, 227, 51, 161, 228),
871 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
872 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
873 ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
874 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
875 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
876 ];
877 pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
878 match index {
879 0 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(),
880 1 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(),
881 2 => <::capnp::struct_list::Owned<crate::common_capnp::node_address::Owned> as ::capnp::introspect::Introspect>::introspect(),
882 _ => panic!("invalid field index {}", index),
883 }
884 }
885 pub fn get_annotation_types(
886 child_index: Option<u16>,
887 index: u32,
888 ) -> ::capnp::introspect::Type {
889 panic!("invalid annotation indices ({:?}, {}) ", child_index, index)
890 }
891 pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema =
892 ::capnp::introspect::RawStructSchema {
893 encoded_node: &ENCODED_NODE,
894 nonunion_members: NONUNION_MEMBERS,
895 members_by_discriminant: MEMBERS_BY_DISCRIMINANT,
896 members_by_name: MEMBERS_BY_NAME,
897 };
898 pub static NONUNION_MEMBERS: &[u16] = &[0, 1, 2];
899 pub static MEMBERS_BY_DISCRIMINANT: &[u16] = &[];
900 pub static MEMBERS_BY_NAME: &[u16] = &[2, 0, 1];
901 pub const TYPE_ID: u64 = 0xd582_4f6b_8482_b631;
902 }
903}
904
905pub mod node_address {
906 #[derive(Copy, Clone)]
907 pub struct Owned(());
908 impl ::capnp::introspect::Introspect for Owned {
909 fn introspect() -> ::capnp::introspect::Type {
910 ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema {
911 generic: &_private::RAW_SCHEMA,
912 field_types: _private::get_field_types,
913 annotation_types: _private::get_annotation_types,
914 })
915 .into()
916 }
917 }
918 impl ::capnp::traits::Owned for Owned {
919 type Reader<'a> = Reader<'a>;
920 type Builder<'a> = Builder<'a>;
921 }
922 impl ::capnp::traits::OwnedStruct for Owned {
923 type Reader<'a> = Reader<'a>;
924 type Builder<'a> = Builder<'a>;
925 }
926 impl ::capnp::traits::Pipelined for Owned {
927 type Pipeline = Pipeline;
928 }
929
930 pub struct Reader<'a> {
931 reader: ::capnp::private::layout::StructReader<'a>,
932 }
933 impl<'a> ::core::marker::Copy for Reader<'a> {}
934 impl<'a> ::core::clone::Clone for Reader<'a> {
935 fn clone(&self) -> Self {
936 *self
937 }
938 }
939
940 impl<'a> ::capnp::traits::HasTypeId for Reader<'a> {
941 const TYPE_ID: u64 = _private::TYPE_ID;
942 }
943 impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> {
944 fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self {
945 Self { reader }
946 }
947 }
948
949 impl<'a> ::core::convert::From<Reader<'a>> for ::capnp::dynamic_value::Reader<'a> {
950 fn from(reader: Reader<'a>) -> Self {
951 Self::Struct(::capnp::dynamic_struct::Reader::new(
952 reader.reader,
953 ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema {
954 generic: &_private::RAW_SCHEMA,
955 field_types: _private::get_field_types,
956 annotation_types: _private::get_annotation_types,
957 }),
958 ))
959 }
960 }
961
962 impl<'a> ::core::fmt::Debug for Reader<'a> {
963 fn fmt(
964 &self,
965 f: &mut ::core::fmt::Formatter<'_>,
966 ) -> ::core::result::Result<(), ::core::fmt::Error> {
967 core::fmt::Debug::fmt(
968 &::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self),
969 f,
970 )
971 }
972 }
973
974 impl<'a> ::capnp::traits::FromPointerReader<'a> for Reader<'a> {
975 fn get_from_pointer(
976 reader: &::capnp::private::layout::PointerReader<'a>,
977 default: ::core::option::Option<&'a [::capnp::Word]>,
978 ) -> ::capnp::Result<Self> {
979 ::core::result::Result::Ok(reader.get_struct(default)?.into())
980 }
981 }
982
983 impl<'a> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a> {
984 fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> {
985 self.reader
986 }
987 }
988
989 impl<'a> ::capnp::traits::Imbue<'a> for Reader<'a> {
990 fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) {
991 self.reader
992 .imbue(::capnp::private::layout::CapTableReader::Plain(cap_table))
993 }
994 }
995
996 impl<'a> Reader<'a> {
997 pub fn reborrow(&self) -> Reader<'_> {
998 Self { ..*self }
999 }
1000
1001 pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> {
1002 self.reader.total_size()
1003 }
1004 #[inline]
1005 pub fn get_data(self) -> ::capnp::Result<::capnp::text::Reader<'a>> {
1006 ::capnp::traits::FromPointerReader::get_from_pointer(
1007 &self.reader.get_pointer_field(0),
1008 ::core::option::Option::None,
1009 )
1010 }
1011 #[inline]
1012 pub fn has_data(&self) -> bool {
1013 !self.reader.get_pointer_field(0).is_null()
1014 }
1015 }
1016
1017 pub struct Builder<'a> {
1018 builder: ::capnp::private::layout::StructBuilder<'a>,
1019 }
1020 impl<'a> ::capnp::traits::HasStructSize for Builder<'a> {
1021 const STRUCT_SIZE: ::capnp::private::layout::StructSize =
1022 ::capnp::private::layout::StructSize {
1023 data: 0,
1024 pointers: 1,
1025 };
1026 }
1027 impl<'a> ::capnp::traits::HasTypeId for Builder<'a> {
1028 const TYPE_ID: u64 = _private::TYPE_ID;
1029 }
1030 impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> {
1031 fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
1032 Self { builder }
1033 }
1034 }
1035
1036 impl<'a> ::core::convert::From<Builder<'a>> for ::capnp::dynamic_value::Builder<'a> {
1037 fn from(builder: Builder<'a>) -> Self {
1038 Self::Struct(::capnp::dynamic_struct::Builder::new(
1039 builder.builder,
1040 ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema {
1041 generic: &_private::RAW_SCHEMA,
1042 field_types: _private::get_field_types,
1043 annotation_types: _private::get_annotation_types,
1044 }),
1045 ))
1046 }
1047 }
1048
1049 impl<'a> ::capnp::traits::ImbueMut<'a> for Builder<'a> {
1050 fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) {
1051 self.builder
1052 .imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table))
1053 }
1054 }
1055
1056 impl<'a> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a> {
1057 fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self {
1058 builder
1059 .init_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE)
1060 .into()
1061 }
1062 fn get_from_pointer(
1063 builder: ::capnp::private::layout::PointerBuilder<'a>,
1064 default: ::core::option::Option<&'a [::capnp::Word]>,
1065 ) -> ::capnp::Result<Self> {
1066 ::core::result::Result::Ok(
1067 builder
1068 .get_struct(
1069 <Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE,
1070 default,
1071 )?
1072 .into(),
1073 )
1074 }
1075 }
1076
1077 impl<'a> ::capnp::traits::SetterInput<Owned> for Reader<'a> {
1078 fn set_pointer_builder(
1079 mut pointer: ::capnp::private::layout::PointerBuilder<'_>,
1080 value: Self,
1081 canonicalize: bool,
1082 ) -> ::capnp::Result<()> {
1083 pointer.set_struct(&value.reader, canonicalize)
1084 }
1085 }
1086
1087 impl<'a> Builder<'a> {
1088 pub fn into_reader(self) -> Reader<'a> {
1089 self.builder.into_reader().into()
1090 }
1091 pub fn reborrow(&mut self) -> Builder<'_> {
1092 Builder {
1093 builder: self.builder.reborrow(),
1094 }
1095 }
1096 pub fn reborrow_as_reader(&self) -> Reader<'_> {
1097 self.builder.as_reader().into()
1098 }
1099
1100 pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> {
1101 self.builder.as_reader().total_size()
1102 }
1103 #[inline]
1104 pub fn get_data(self) -> ::capnp::Result<::capnp::text::Builder<'a>> {
1105 ::capnp::traits::FromPointerBuilder::get_from_pointer(
1106 self.builder.get_pointer_field(0),
1107 ::core::option::Option::None,
1108 )
1109 }
1110 #[inline]
1111 pub fn set_data(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text::Owned>) {
1112 ::capnp::traits::SetterInput::set_pointer_builder(
1113 self.builder.reborrow().get_pointer_field(0),
1114 value,
1115 false,
1116 )
1117 .unwrap()
1118 }
1119 #[inline]
1120 pub fn init_data(self, size: u32) -> ::capnp::text::Builder<'a> {
1121 self.builder.get_pointer_field(0).init_text(size)
1122 }
1123 #[inline]
1124 pub fn has_data(&self) -> bool {
1125 !self.builder.is_pointer_field_null(0)
1126 }
1127 }
1128
1129 pub struct Pipeline {
1130 _typeless: ::capnp::any_pointer::Pipeline,
1131 }
1132 impl ::capnp::capability::FromTypelessPipeline for Pipeline {
1133 fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
1134 Self {
1135 _typeless: typeless,
1136 }
1137 }
1138 }
1139 impl Pipeline {}
1140 mod _private {
1141 pub static ENCODED_NODE: [::capnp::Word; 33] = [
1142 ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
1143 ::capnp::word(18, 12, 97, 46, 227, 51, 161, 228),
1144 ::capnp::word(18, 0, 0, 0, 1, 0, 0, 0),
1145 ::capnp::word(121, 148, 153, 240, 116, 143, 229, 142),
1146 ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0),
1147 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1148 ::capnp::word(21, 0, 0, 0, 242, 0, 0, 0),
1149 ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0),
1150 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1151 ::capnp::word(29, 0, 0, 0, 63, 0, 0, 0),
1152 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1153 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1154 ::capnp::word(99, 97, 112, 110, 47, 99, 111, 109),
1155 ::capnp::word(109, 111, 110, 46, 99, 97, 112, 110),
1156 ::capnp::word(112, 58, 78, 111, 100, 101, 65, 100),
1157 ::capnp::word(100, 114, 101, 115, 115, 0, 0, 0),
1158 ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0),
1159 ::capnp::word(4, 0, 0, 0, 3, 0, 4, 0),
1160 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1161 ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0),
1162 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1163 ::capnp::word(13, 0, 0, 0, 42, 0, 0, 0),
1164 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1165 ::capnp::word(8, 0, 0, 0, 3, 0, 1, 0),
1166 ::capnp::word(20, 0, 0, 0, 2, 0, 1, 0),
1167 ::capnp::word(100, 97, 116, 97, 0, 0, 0, 0),
1168 ::capnp::word(12, 0, 0, 0, 0, 0, 0, 0),
1169 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1170 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1171 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1172 ::capnp::word(12, 0, 0, 0, 0, 0, 0, 0),
1173 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1174 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1175 ];
1176 pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
1177 match index {
1178 0 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(),
1179 _ => panic!("invalid field index {}", index),
1180 }
1181 }
1182 pub fn get_annotation_types(
1183 child_index: Option<u16>,
1184 index: u32,
1185 ) -> ::capnp::introspect::Type {
1186 panic!("invalid annotation indices ({:?}, {}) ", child_index, index)
1187 }
1188 pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema =
1189 ::capnp::introspect::RawStructSchema {
1190 encoded_node: &ENCODED_NODE,
1191 nonunion_members: NONUNION_MEMBERS,
1192 members_by_discriminant: MEMBERS_BY_DISCRIMINANT,
1193 members_by_name: MEMBERS_BY_NAME,
1194 };
1195 pub static NONUNION_MEMBERS: &[u16] = &[0];
1196 pub static MEMBERS_BY_DISCRIMINANT: &[u16] = &[];
1197 pub static MEMBERS_BY_NAME: &[u16] = &[0];
1198 pub const TYPE_ID: u64 = 0xe4a1_33e3_2e61_0c12;
1199 }
1200}