// @generated by the capnpc-rust plugin to the Cap'n Proto schema compiler. // DO NOT EDIT. // source: proto/veilid.capnp pub mod key256 { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_u0(self) -> u64 { self.reader.get_data_field::(0) } #[inline] pub fn get_u1(self) -> u64 { self.reader.get_data_field::(1) } #[inline] pub fn get_u2(self) -> u64 { self.reader.get_data_field::(2) } #[inline] pub fn get_u3(self) -> u64 { self.reader.get_data_field::(3) } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 4, pointers: 0 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_u0(self) -> u64 { self.builder.get_data_field::(0) } #[inline] pub fn set_u0(&mut self, value: u64) { self.builder.set_data_field::(0, value); } #[inline] pub fn get_u1(self) -> u64 { self.builder.get_data_field::(1) } #[inline] pub fn set_u1(&mut self, value: u64) { self.builder.set_data_field::(1, value); } #[inline] pub fn get_u2(self) -> u64 { self.builder.get_data_field::(2) } #[inline] pub fn set_u2(&mut self, value: u64) { self.builder.set_data_field::(2, value); } #[inline] pub fn get_u3(self) -> u64 { self.builder.get_data_field::(3) } #[inline] pub fn set_u3(&mut self, value: u64) { self.builder.set_data_field::(3, value); } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 78] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(13, 169, 246, 134, 50, 78, 228, 221), ::capnp::word(19, 0, 0, 0, 1, 0, 4, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(0, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 210, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 231, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 75, 101, 121, 50, 53), ::capnp::word(54, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(97, 0, 0, 0, 26, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(92, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(104, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(101, 0, 0, 0, 26, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(96, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(108, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(105, 0, 0, 0, 26, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(100, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(112, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(3, 0, 0, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(109, 0, 0, 0, 26, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(104, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(116, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(117, 48, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(117, 49, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(117, 50, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(117, 51, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => ::introspect(), 3 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0,1,2,3]; pub const TYPE_ID: u64 = 0xdde4_4e32_86f6_a90d; } } pub mod signature512 { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_u0(self) -> u64 { self.reader.get_data_field::(0) } #[inline] pub fn get_u1(self) -> u64 { self.reader.get_data_field::(1) } #[inline] pub fn get_u2(self) -> u64 { self.reader.get_data_field::(2) } #[inline] pub fn get_u3(self) -> u64 { self.reader.get_data_field::(3) } #[inline] pub fn get_u4(self) -> u64 { self.reader.get_data_field::(4) } #[inline] pub fn get_u5(self) -> u64 { self.reader.get_data_field::(5) } #[inline] pub fn get_u6(self) -> u64 { self.reader.get_data_field::(6) } #[inline] pub fn get_u7(self) -> u64 { self.reader.get_data_field::(7) } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 8, pointers: 0 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_u0(self) -> u64 { self.builder.get_data_field::(0) } #[inline] pub fn set_u0(&mut self, value: u64) { self.builder.set_data_field::(0, value); } #[inline] pub fn get_u1(self) -> u64 { self.builder.get_data_field::(1) } #[inline] pub fn set_u1(&mut self, value: u64) { self.builder.set_data_field::(1, value); } #[inline] pub fn get_u2(self) -> u64 { self.builder.get_data_field::(2) } #[inline] pub fn set_u2(&mut self, value: u64) { self.builder.set_data_field::(2, value); } #[inline] pub fn get_u3(self) -> u64 { self.builder.get_data_field::(3) } #[inline] pub fn set_u3(&mut self, value: u64) { self.builder.set_data_field::(3, value); } #[inline] pub fn get_u4(self) -> u64 { self.builder.get_data_field::(4) } #[inline] pub fn set_u4(&mut self, value: u64) { self.builder.set_data_field::(4, value); } #[inline] pub fn get_u5(self) -> u64 { self.builder.get_data_field::(5) } #[inline] pub fn set_u5(&mut self, value: u64) { self.builder.set_data_field::(5, value); } #[inline] pub fn get_u6(self) -> u64 { self.builder.get_data_field::(6) } #[inline] pub fn set_u6(&mut self, value: u64) { self.builder.set_data_field::(6, value); } #[inline] pub fn get_u7(self) -> u64 { self.builder.get_data_field::(7) } #[inline] pub fn set_u7(&mut self, value: u64) { self.builder.set_data_field::(7, value); } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 138] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(18, 156, 18, 58, 4, 73, 103, 128), ::capnp::word(19, 0, 0, 0, 1, 0, 8, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(0, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 2, 1, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 199, 1, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 83, 105, 103, 110, 97), ::capnp::word(116, 117, 114, 101, 53, 49, 50, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(32, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(209, 0, 0, 0, 26, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(204, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(216, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(213, 0, 0, 0, 26, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(208, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(220, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(217, 0, 0, 0, 26, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(212, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(224, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(3, 0, 0, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(221, 0, 0, 0, 26, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(216, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(228, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(4, 0, 0, 0, 4, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 4, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(225, 0, 0, 0, 26, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(220, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(232, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(5, 0, 0, 0, 5, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 5, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(229, 0, 0, 0, 26, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(224, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(236, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(6, 0, 0, 0, 6, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 6, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(233, 0, 0, 0, 26, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(228, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(240, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(7, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(237, 0, 0, 0, 26, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(232, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(244, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(117, 48, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(117, 49, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(117, 50, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(117, 51, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(117, 52, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(117, 53, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(117, 54, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(117, 55, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => ::introspect(), 3 => ::introspect(), 4 => ::introspect(), 5 => ::introspect(), 6 => ::introspect(), 7 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3,4,5,6,7]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0,1,2,3,4,5,6,7]; pub const TYPE_ID: u64 = 0x8067_4904_3a12_9c12; } } pub mod nonce24 { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_u0(self) -> u64 { self.reader.get_data_field::(0) } #[inline] pub fn get_u1(self) -> u64 { self.reader.get_data_field::(1) } #[inline] pub fn get_u2(self) -> u64 { self.reader.get_data_field::(2) } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 3, pointers: 0 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_u0(self) -> u64 { self.builder.get_data_field::(0) } #[inline] pub fn set_u0(&mut self, value: u64) { self.builder.set_data_field::(0, value); } #[inline] pub fn get_u1(self) -> u64 { self.builder.get_data_field::(1) } #[inline] pub fn set_u1(&mut self, value: u64) { self.builder.set_data_field::(1, value); } #[inline] pub fn get_u2(self) -> u64 { self.builder.get_data_field::(2) } #[inline] pub fn set_u2(&mut self, value: u64) { self.builder.set_data_field::(2, value); } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 63] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(252, 125, 141, 93, 178, 13, 38, 182), ::capnp::word(19, 0, 0, 0, 1, 0, 3, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(0, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 218, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 175, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 78, 111, 110, 99, 101), ::capnp::word(50, 52, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(12, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(69, 0, 0, 0, 26, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(64, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(76, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(73, 0, 0, 0, 26, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(68, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(80, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(77, 0, 0, 0, 26, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(72, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(84, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(117, 48, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(117, 49, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(117, 50, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0,1,2]; pub const TYPE_ID: u64 = 0xb626_0db2_5d8d_7dfc; } } pub mod typed_key { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_kind(self) -> u32 { self.reader.get_data_field::(0) } #[inline] pub fn get_key(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_key(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_kind(self) -> u32 { self.builder.get_data_field::(0) } #[inline] pub fn set_kind(&mut self, value: u32) { self.builder.set_data_field::(0, value); } #[inline] pub fn get_key(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_key(&mut self, value: crate::veilid_capnp::key256::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_key(self, ) -> crate::veilid_capnp::key256::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_key(&self) -> bool { !self.builder.is_pointer_field_null(0) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_key(&self) -> crate::veilid_capnp::key256::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 48] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(41, 27, 230, 241, 169, 103, 213, 226), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 226, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 84, 121, 112, 101, 100), ::capnp::word(75, 101, 121, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 42, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(36, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(48, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(45, 0, 0, 0, 34, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(40, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(52, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(107, 105, 110, 100, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(107, 101, 121, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 169, 246, 134, 50, 78, 228, 221), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[1,0]; pub const TYPE_ID: u64 = 0xe2d5_67a9_f1e6_1b29; } } pub mod typed_signature { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_kind(self) -> u32 { self.reader.get_data_field::(0) } #[inline] pub fn get_signature(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_signature(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_kind(self) -> u32 { self.builder.get_data_field::(0) } #[inline] pub fn set_kind(&mut self, value: u32) { self.builder.set_data_field::(0, value); } #[inline] pub fn get_signature(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_signature(&mut self, value: crate::veilid_capnp::signature512::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_signature(self, ) -> crate::veilid_capnp::signature512::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_signature(&self) -> bool { !self.builder.is_pointer_field_null(0) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_signature(&self) -> crate::veilid_capnp::signature512::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 50] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(132, 56, 142, 41, 199, 112, 49, 150), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 18, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 84, 121, 112, 101, 100), ::capnp::word(83, 105, 103, 110, 97, 116, 117, 114), ::capnp::word(101, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 42, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(36, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(48, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(45, 0, 0, 0, 82, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(44, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(56, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(107, 105, 110, 100, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(115, 105, 103, 110, 97, 116, 117, 114), ::capnp::word(101, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(18, 156, 18, 58, 4, 73, 103, 128), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0,1]; pub const TYPE_ID: u64 = 0x9631_70c7_298e_3884; } } pub mod address_i_p_v4 { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_addr(self) -> u32 { self.reader.get_data_field::(0) } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 0 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_addr(self) -> u32 { self.builder.get_data_field::(0) } #[inline] pub fn set_addr(&mut self, value: u32) { self.builder.set_data_field::(0, value); } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 33] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(160, 166, 102, 18, 136, 105, 135, 219), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(0, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 250, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 63, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 65, 100, 100, 114, 101), ::capnp::word(115, 115, 73, 80, 86, 52, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(4, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 42, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(20, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(97, 100, 100, 114, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0]; pub const TYPE_ID: u64 = 0xdb87_6988_1266_a6a0; } } pub mod address_i_p_v6 { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_addr0(self) -> u32 { self.reader.get_data_field::(0) } #[inline] pub fn get_addr1(self) -> u32 { self.reader.get_data_field::(1) } #[inline] pub fn get_addr2(self) -> u32 { self.reader.get_data_field::(2) } #[inline] pub fn get_addr3(self) -> u32 { self.reader.get_data_field::(3) } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 2, pointers: 0 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_addr0(self) -> u32 { self.builder.get_data_field::(0) } #[inline] pub fn set_addr0(&mut self, value: u32) { self.builder.set_data_field::(0, value); } #[inline] pub fn get_addr1(self) -> u32 { self.builder.get_data_field::(1) } #[inline] pub fn set_addr1(&mut self, value: u32) { self.builder.set_data_field::(1, value); } #[inline] pub fn get_addr2(self) -> u32 { self.builder.get_data_field::(2) } #[inline] pub fn set_addr2(&mut self, value: u32) { self.builder.set_data_field::(2, value); } #[inline] pub fn get_addr3(self) -> u32 { self.builder.get_data_field::(3) } #[inline] pub fn set_addr3(&mut self, value: u32) { self.builder.set_data_field::(3, value); } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 78] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(32, 92, 220, 17, 96, 110, 93, 179), ::capnp::word(19, 0, 0, 0, 1, 0, 2, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(0, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 250, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 231, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 65, 100, 100, 114, 101), ::capnp::word(115, 115, 73, 80, 86, 54, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(97, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(92, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(104, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(101, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(96, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(108, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(105, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(100, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(112, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(3, 0, 0, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(109, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(104, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(116, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(97, 100, 100, 114, 48, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(97, 100, 100, 114, 49, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(97, 100, 100, 114, 50, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(97, 100, 100, 114, 51, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => ::introspect(), 3 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0,1,2,3]; pub const TYPE_ID: u64 = 0xb35d_6e60_11dc_5c20; } } pub mod address { pub use self::Which::{Ipv4,Ipv6}; #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn has_ipv4(&self) -> bool { if self.reader.get_data_field::(0) != 0 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_ipv6(&self) -> bool { if self.reader.get_data_field::(0) != 1 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.reader.get_data_field::(0) { 0 => { ::core::result::Result::Ok(Ipv4( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(Ipv6( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn set_ipv4(&mut self, value: crate::veilid_capnp::address_i_p_v4::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 0); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_ipv4(self, ) -> crate::veilid_capnp::address_i_p_v4::Builder<'a> { self.builder.set_data_field::(0, 0); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_ipv4(&self) -> bool { if self.builder.get_data_field::(0) != 0 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_ipv6(&mut self, value: crate::veilid_capnp::address_i_p_v6::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 1); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_ipv6(self, ) -> crate::veilid_capnp::address_i_p_v6::Builder<'a> { self.builder.set_data_field::(0, 1); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_ipv6(&self) -> bool { if self.builder.get_data_field::(0) != 1 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.builder.get_data_field::(0) { 0 => { ::core::result::Result::Ok(Ipv4( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(Ipv6( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 48] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(139, 16, 125, 229, 233, 6, 39, 129), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 2, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 218, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 65, 100, 100, 114, 101), ::capnp::word(115, 115, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 255, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 42, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(36, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(48, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 254, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(45, 0, 0, 0, 42, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(40, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(52, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(105, 112, 118, 52, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(160, 166, 102, 18, 136, 105, 135, 219), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(105, 112, 118, 54, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(32, 92, 220, 17, 96, 110, 93, 179), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[0,1]; pub static MEMBERS_BY_NAME : &[u16] = &[0,1]; pub const TYPE_ID: u64 = 0x8127_06e9_e57d_108b; } pub enum Which { Ipv4(A0), Ipv6(A1), } pub type WhichReader<'a,> = Which<::capnp::Result>,::capnp::Result>>; pub type WhichBuilder<'a,> = Which<::capnp::Result>,::capnp::Result>>; } pub mod socket_address { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_address(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_address(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_port(self) -> u16 { self.reader.get_data_field::(0) } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_address(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_address(&mut self, value: crate::veilid_capnp::address::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_address(self, ) -> crate::veilid_capnp::address::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_address(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_port(self) -> u16 { self.builder.get_data_field::(0) } #[inline] pub fn set_port(&mut self, value: u16) { self.builder.set_data_field::(0, value); } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_address(&self) -> crate::veilid_capnp::address::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 49] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(98, 58, 221, 244, 114, 66, 223, 130), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 10, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 83, 111, 99, 107, 101), ::capnp::word(116, 65, 100, 100, 114, 101, 115, 115), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(36, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(48, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(45, 0, 0, 0, 42, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(40, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(52, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(97, 100, 100, 114, 101, 115, 115, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(139, 16, 125, 229, 233, 6, 39, 129), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 111, 114, 116, 0, 0, 0, 0), ::capnp::word(7, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(7, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0,1]; pub const TYPE_ID: u64 = 0x82df_4272_f4dd_3a62; } } #[repr(u16)] #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub enum ProtocolKind { Udp = 0, Ws = 1, Wss = 2, Tcp = 3, } impl ::capnp::introspect::Introspect for ProtocolKind { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Enum(::capnp::introspect::RawEnumSchema { encoded_node: &protocol_kind::ENCODED_NODE, annotation_types: protocol_kind::get_annotation_types }).into() } } impl <'a> ::core::convert::From for ::capnp::dynamic_value::Reader<'a> { fn from(e: ProtocolKind) -> Self { ::capnp::dynamic_value::Enum::new(e.into(), ::capnp::introspect::RawEnumSchema { encoded_node: &protocol_kind::ENCODED_NODE, annotation_types: protocol_kind::get_annotation_types }.into()).into() } } impl ::core::convert::TryFrom for ProtocolKind { type Error = ::capnp::NotInSchema; fn try_from(value: u16) -> ::core::result::Result>::Error> { match value { 0 => ::core::result::Result::Ok(Self::Udp), 1 => ::core::result::Result::Ok(Self::Ws), 2 => ::core::result::Result::Ok(Self::Wss), 3 => ::core::result::Result::Ok(Self::Tcp), n => ::core::result::Result::Err(::capnp::NotInSchema(n)), } } } impl From for u16 { #[inline] fn from(x: ProtocolKind) -> u16 { x as u16 } } impl ::capnp::traits::HasTypeId for ProtocolKind { const TYPE_ID: u64 = 0xde0b_f578_7c06_7d5au64; } mod protocol_kind { pub static ENCODED_NODE: [::capnp::Word; 34] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(90, 125, 6, 124, 120, 245, 11, 222), ::capnp::word(19, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 2, 1, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 103, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 80, 114, 111, 116, 111), ::capnp::word(99, 111, 108, 75, 105, 110, 100, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 1, 0, 2, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 34, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 26, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(2, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(25, 0, 0, 0, 34, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(3, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(17, 0, 0, 0, 34, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(117, 100, 112, 0, 0, 0, 0, 0), ::capnp::word(119, 115, 0, 0, 0, 0, 0, 0), ::capnp::word(119, 115, 115, 0, 0, 0, 0, 0), ::capnp::word(116, 99, 112, 0, 0, 0, 0, 0), ]; pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } } pub mod dial_info_u_d_p { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_socket_address(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_socket_address(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_socket_address(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_socket_address(&mut self, value: crate::veilid_capnp::socket_address::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_socket_address(self, ) -> crate::veilid_capnp::socket_address::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_socket_address(&self) -> bool { !self.builder.is_pointer_field_null(0) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_socket_address(&self) -> crate::veilid_capnp::socket_address::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 34] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(124, 74, 2, 183, 184, 168, 56, 187), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 250, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 63, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 68, 105, 97, 108, 73), ::capnp::word(110, 102, 111, 85, 68, 80, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(4, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 114, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(12, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(24, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(115, 111, 99, 107, 101, 116, 65, 100), ::capnp::word(100, 114, 101, 115, 115, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(98, 58, 221, 244, 114, 66, 223, 130), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0]; pub const TYPE_ID: u64 = 0xbb38_a8b8_b702_4a7c; } } pub mod dial_info_t_c_p { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_socket_address(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_socket_address(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_socket_address(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_socket_address(&mut self, value: crate::veilid_capnp::socket_address::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_socket_address(self, ) -> crate::veilid_capnp::socket_address::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_socket_address(&self) -> bool { !self.builder.is_pointer_field_null(0) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_socket_address(&self) -> crate::veilid_capnp::socket_address::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 34] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(252, 247, 169, 185, 113, 147, 10, 158), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 250, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 63, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 68, 105, 97, 108, 73), ::capnp::word(110, 102, 111, 84, 67, 80, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(4, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 114, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(12, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(24, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(115, 111, 99, 107, 101, 116, 65, 100), ::capnp::word(100, 114, 101, 115, 115, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(98, 58, 221, 244, 114, 66, 223, 130), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0]; pub const TYPE_ID: u64 = 0x9e0a_9371_b9a9_f7fc; } } pub mod dial_info_w_s { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_socket_address(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_socket_address(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_request(self) -> ::capnp::Result<::capnp::text::Reader<'a>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_request(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_socket_address(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_socket_address(&mut self, value: crate::veilid_capnp::socket_address::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_socket_address(self, ) -> crate::veilid_capnp::socket_address::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_socket_address(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_request(self) -> ::capnp::Result<::capnp::text::Builder<'a>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_request(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text::Owned>) { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false).unwrap() } #[inline] pub fn init_request(self, size: u32) -> ::capnp::text::Builder<'a> { self.builder.get_pointer_field(1).init_text(size) } #[inline] pub fn has_request(&self) -> bool { !self.builder.is_pointer_field_null(1) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_socket_address(&self) -> crate::veilid_capnp::socket_address::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 49] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(176, 21, 171, 146, 122, 95, 121, 215), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(2, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 242, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 68, 105, 97, 108, 73), ::capnp::word(110, 102, 111, 87, 83, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 114, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(40, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(52, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(49, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(44, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(56, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(115, 111, 99, 107, 101, 116, 65, 100), ::capnp::word(100, 114, 101, 115, 115, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(98, 58, 221, 244, 114, 66, 223, 130), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(114, 101, 113, 117, 101, 115, 116, 0), ::capnp::word(12, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(12, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[1,0]; pub const TYPE_ID: u64 = 0xd779_5f7a_92ab_15b0; } } pub mod dial_info_w_s_s { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_socket_address(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_socket_address(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_request(self) -> ::capnp::Result<::capnp::text::Reader<'a>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_request(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_socket_address(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_socket_address(&mut self, value: crate::veilid_capnp::socket_address::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_socket_address(self, ) -> crate::veilid_capnp::socket_address::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_socket_address(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_request(self) -> ::capnp::Result<::capnp::text::Builder<'a>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_request(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text::Owned>) { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false).unwrap() } #[inline] pub fn init_request(self, size: u32) -> ::capnp::text::Builder<'a> { self.builder.get_pointer_field(1).init_text(size) } #[inline] pub fn has_request(&self) -> bool { !self.builder.is_pointer_field_null(1) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_socket_address(&self) -> crate::veilid_capnp::socket_address::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 49] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(4, 123, 125, 27, 164, 250, 57, 230), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(2, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 250, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 68, 105, 97, 108, 73), ::capnp::word(110, 102, 111, 87, 83, 83, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 114, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(40, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(52, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(49, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(44, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(56, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(115, 111, 99, 107, 101, 116, 65, 100), ::capnp::word(100, 114, 101, 115, 115, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(98, 58, 221, 244, 114, 66, 223, 130), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(114, 101, 113, 117, 101, 115, 116, 0), ::capnp::word(12, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(12, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[1,0]; pub const TYPE_ID: u64 = 0xe639_faa4_1b7d_7b04; } } pub mod dial_info { pub use self::Which::{Udp,Tcp,Ws,Wss}; #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn has_udp(&self) -> bool { if self.reader.get_data_field::(0) != 0 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_tcp(&self) -> bool { if self.reader.get_data_field::(0) != 1 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_ws(&self) -> bool { if self.reader.get_data_field::(0) != 2 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_wss(&self) -> bool { if self.reader.get_data_field::(0) != 3 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.reader.get_data_field::(0) { 0 => { ::core::result::Result::Ok(Udp( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(Tcp( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 2 => { ::core::result::Result::Ok(Ws( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 3 => { ::core::result::Result::Ok(Wss( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn set_udp(&mut self, value: crate::veilid_capnp::dial_info_u_d_p::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 0); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_udp(self, ) -> crate::veilid_capnp::dial_info_u_d_p::Builder<'a> { self.builder.set_data_field::(0, 0); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_udp(&self) -> bool { if self.builder.get_data_field::(0) != 0 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_tcp(&mut self, value: crate::veilid_capnp::dial_info_t_c_p::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 1); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_tcp(self, ) -> crate::veilid_capnp::dial_info_t_c_p::Builder<'a> { self.builder.set_data_field::(0, 1); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_tcp(&self) -> bool { if self.builder.get_data_field::(0) != 1 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_ws(&mut self, value: crate::veilid_capnp::dial_info_w_s::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 2); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_ws(self, ) -> crate::veilid_capnp::dial_info_w_s::Builder<'a> { self.builder.set_data_field::(0, 2); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_ws(&self) -> bool { if self.builder.get_data_field::(0) != 2 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_wss(&mut self, value: crate::veilid_capnp::dial_info_w_s_s::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 3); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_wss(self, ) -> crate::veilid_capnp::dial_info_w_s_s::Builder<'a> { self.builder.set_data_field::(0, 3); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_wss(&self) -> bool { if self.builder.get_data_field::(0) != 3 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.builder.get_data_field::(0) { 0 => { ::core::result::Result::Ok(Udp( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(Tcp( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 2 => { ::core::result::Result::Ok(Ws( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 3 => { ::core::result::Result::Ok(Wss( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 78] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(223, 239, 45, 252, 57, 28, 205, 225), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 226, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 231, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 68, 105, 97, 108, 73), ::capnp::word(110, 102, 111, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 255, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(97, 0, 0, 0, 34, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(92, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(104, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 254, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(101, 0, 0, 0, 34, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(96, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(108, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 253, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(105, 0, 0, 0, 26, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(100, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(112, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(3, 0, 252, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(109, 0, 0, 0, 34, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(104, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(116, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(117, 100, 112, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(124, 74, 2, 183, 184, 168, 56, 187), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(116, 99, 112, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(252, 247, 169, 185, 113, 147, 10, 158), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(119, 115, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(176, 21, 171, 146, 122, 95, 121, 215), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(119, 115, 115, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(4, 123, 125, 27, 164, 250, 57, 230), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => ::introspect(), 3 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[0,1,2,3]; pub static MEMBERS_BY_NAME : &[u16] = &[1,0,2,3]; pub const TYPE_ID: u64 = 0xe1cd_1c39_fc2d_efdf; } pub enum Which { Udp(A0), Tcp(A1), Ws(A2), Wss(A3), } pub type WhichReader<'a,> = Which<::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>>; pub type WhichBuilder<'a,> = Which<::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>>; } pub mod signal_info_hole_punch { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_receipt(self) -> ::capnp::Result<::capnp::data::Reader<'a>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_receipt(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_peer_info(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_peer_info(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_receipt(self) -> ::capnp::Result<::capnp::data::Builder<'a>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_receipt(&mut self, value: ::capnp::data::Reader<'_>) { self.builder.reborrow().get_pointer_field(0).set_data(value); } #[inline] pub fn init_receipt(self, size: u32) -> ::capnp::data::Builder<'a> { self.builder.get_pointer_field(0).init_data(size) } #[inline] pub fn has_receipt(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_peer_info(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_peer_info(&mut self, value: crate::veilid_capnp::peer_info::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_peer_info(self, ) -> crate::veilid_capnp::peer_info::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_peer_info(&self) -> bool { !self.builder.is_pointer_field_null(1) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_peer_info(&self) -> crate::veilid_capnp::peer_info::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(1)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 50] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(154, 12, 137, 97, 104, 171, 185, 238), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(2, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 58, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 83, 105, 103, 110, 97), ::capnp::word(108, 73, 110, 102, 111, 72, 111, 108), ::capnp::word(101, 80, 117, 110, 99, 104, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(36, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(48, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(45, 0, 0, 0, 74, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(44, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(56, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(114, 101, 99, 101, 105, 112, 116, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 101, 101, 114, 73, 110, 102, 111), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(203, 75, 60, 93, 45, 114, 45, 254), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(), 1 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[1,0]; pub const TYPE_ID: u64 = 0xeeb9_ab68_6189_0c9a; } } pub mod signal_info_reverse_connect { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_receipt(self) -> ::capnp::Result<::capnp::data::Reader<'a>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_receipt(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_peer_info(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_peer_info(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_receipt(self) -> ::capnp::Result<::capnp::data::Builder<'a>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_receipt(&mut self, value: ::capnp::data::Reader<'_>) { self.builder.reborrow().get_pointer_field(0).set_data(value); } #[inline] pub fn init_receipt(self, size: u32) -> ::capnp::data::Builder<'a> { self.builder.get_pointer_field(0).init_data(size) } #[inline] pub fn has_receipt(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_peer_info(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_peer_info(&mut self, value: crate::veilid_capnp::peer_info::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_peer_info(self, ) -> crate::veilid_capnp::peer_info::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_peer_info(&self) -> bool { !self.builder.is_pointer_field_null(1) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_peer_info(&self) -> crate::veilid_capnp::peer_info::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(1)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 51] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(19, 224, 70, 13, 189, 211, 235, 217), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(2, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 98, 1, 0, 0), ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(37, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 83, 105, 103, 110, 97), ::capnp::word(108, 73, 110, 102, 111, 82, 101, 118), ::capnp::word(101, 114, 115, 101, 67, 111, 110, 110), ::capnp::word(101, 99, 116, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(36, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(48, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(45, 0, 0, 0, 74, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(44, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(56, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(114, 101, 99, 101, 105, 112, 116, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 101, 101, 114, 73, 110, 102, 111), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(203, 75, 60, 93, 45, 114, 45, 254), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(), 1 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[1,0]; pub const TYPE_ID: u64 = 0xd9eb_d3bd_0d46_e013; } } pub mod route_hop_data { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_nonce(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_nonce(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_blob(self) -> ::capnp::Result<::capnp::data::Reader<'a>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_blob(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_nonce(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_nonce(&mut self, value: crate::veilid_capnp::nonce24::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_nonce(self, ) -> crate::veilid_capnp::nonce24::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_nonce(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_blob(self) -> ::capnp::Result<::capnp::data::Builder<'a>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_blob(&mut self, value: ::capnp::data::Reader<'_>) { self.builder.reborrow().get_pointer_field(1).set_data(value); } #[inline] pub fn init_blob(self, size: u32) -> ::capnp::data::Builder<'a> { self.builder.get_pointer_field(1).init_data(size) } #[inline] pub fn has_blob(&self) -> bool { !self.builder.is_pointer_field_null(1) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_nonce(&self) -> crate::veilid_capnp::nonce24::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 48] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(242, 173, 183, 209, 249, 49, 226, 140), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(2, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 2, 1, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 82, 111, 117, 116, 101), ::capnp::word(72, 111, 112, 68, 97, 116, 97, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(36, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(48, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(45, 0, 0, 0, 42, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(40, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(52, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(110, 111, 110, 99, 101, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(252, 125, 141, 93, 178, 13, 38, 182), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(98, 108, 111, 98, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[1,0]; pub const TYPE_ID: u64 = 0x8ce2_31f9_d1b7_adf2; } } pub mod route_hop { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_node(self) -> crate::veilid_capnp::route_hop::node::Reader<'a> { self.reader.into() } #[inline] pub fn get_next_hop(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_next_hop(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_node(self) -> crate::veilid_capnp::route_hop::node::Builder<'a> { self.builder.into() } #[inline] pub fn init_node(mut self, ) -> crate::veilid_capnp::route_hop::node::Builder<'a> { self.builder.set_data_field::(0, 0); self.builder.reborrow().get_pointer_field(0).clear(); self.builder.into() } #[inline] pub fn get_next_hop(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_next_hop(&mut self, value: crate::veilid_capnp::route_hop_data::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_next_hop(self, ) -> crate::veilid_capnp::route_hop_data::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_next_hop(&self) -> bool { !self.builder.is_pointer_field_null(1) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_node(&self) -> crate::veilid_capnp::route_hop::node::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.noop()) } pub fn get_next_hop(&self) -> crate::veilid_capnp::route_hop_data::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(1)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 41] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(59, 12, 206, 92, 215, 114, 246, 248), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(2, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 226, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 82, 111, 117, 116, 101), ::capnp::word(72, 111, 112, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 226, 183, 112, 125, 213, 33, 202), ::capnp::word(41, 0, 0, 0, 42, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(17, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(12, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(24, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(110, 111, 100, 101, 0, 0, 0, 0), ::capnp::word(110, 101, 120, 116, 72, 111, 112, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(242, 173, 183, 209, 249, 49, 226, 140), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[1,0]; pub const TYPE_ID: u64 = 0xf8f6_72d7_5cce_0c3b; } pub mod node { pub use self::Which::{NodeId,PeerInfo}; #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn has_node_id(&self) -> bool { if self.reader.get_data_field::(0) != 0 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_peer_info(&self) -> bool { if self.reader.get_data_field::(0) != 1 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.reader.get_data_field::(0) { 0 => { ::core::result::Result::Ok(NodeId( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(PeerInfo( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn set_node_id(&mut self, value: crate::veilid_capnp::key256::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 0); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_node_id(self, ) -> crate::veilid_capnp::key256::Builder<'a> { self.builder.set_data_field::(0, 0); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_node_id(&self) -> bool { if self.builder.get_data_field::(0) != 0 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_peer_info(&mut self, value: crate::veilid_capnp::peer_info::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 1); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_peer_info(self, ) -> crate::veilid_capnp::peer_info::Builder<'a> { self.builder.set_data_field::(0, 1); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_peer_info(&self) -> bool { if self.builder.get_data_field::(0) != 1 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.builder.get_data_field::(0) { 0 => { ::core::result::Result::Ok(NodeId( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(PeerInfo( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 49] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(33, 226, 183, 112, 125, 213, 33, 202), ::capnp::word(28, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(59, 12, 206, 92, 215, 114, 246, 248), ::capnp::word(2, 0, 7, 0, 1, 0, 2, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 10, 1, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 82, 111, 117, 116, 101), ::capnp::word(72, 111, 112, 46, 110, 111, 100, 101), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 255, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 58, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(36, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(48, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 254, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(45, 0, 0, 0, 74, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(44, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(56, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(110, 111, 100, 101, 73, 100, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 169, 246, 134, 50, 78, 228, 221), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 101, 101, 114, 73, 110, 102, 111), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(203, 75, 60, 93, 45, 114, 45, 254), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[0,1]; pub static MEMBERS_BY_NAME : &[u16] = &[0,1]; pub const TYPE_ID: u64 = 0xca21_d57d_70b7_e221; } pub enum Which { NodeId(A0), PeerInfo(A1), } pub type WhichReader<'a,> = Which<::capnp::Result>,::capnp::Result>>; pub type WhichBuilder<'a,> = Which<::capnp::Result>,::capnp::Result>>; } } pub mod private_route { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_public_key(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_public_key(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_hop_count(self) -> u8 { self.reader.get_data_field::(0) } #[inline] pub fn get_hops(self) -> crate::veilid_capnp::private_route::hops::Reader<'a> { self.reader.into() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_public_key(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_public_key(&mut self, value: crate::veilid_capnp::typed_key::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_public_key(self, ) -> crate::veilid_capnp::typed_key::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_public_key(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_hop_count(self) -> u8 { self.builder.get_data_field::(0) } #[inline] pub fn set_hop_count(&mut self, value: u8) { self.builder.set_data_field::(0, value); } #[inline] pub fn get_hops(self) -> crate::veilid_capnp::private_route::hops::Builder<'a> { self.builder.into() } #[inline] pub fn init_hops(mut self, ) -> crate::veilid_capnp::private_route::hops::Builder<'a> { self.builder.set_data_field::(1, 0); self.builder.reborrow().get_pointer_field(1).clear(); self.builder.into() } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_public_key(&self) -> crate::veilid_capnp::typed_key::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } pub fn get_hops(&self) -> crate::veilid_capnp::private_route::hops::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.noop()) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 58] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(118, 231, 81, 8, 203, 252, 131, 138), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(2, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 2, 1, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 175, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 80, 114, 105, 118, 97), ::capnp::word(116, 101, 82, 111, 117, 116, 101, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(12, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(69, 0, 0, 0, 82, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(68, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(80, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(77, 0, 0, 0, 74, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(76, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(88, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(56, 83, 93, 93, 37, 237, 192, 139), ::capnp::word(85, 0, 0, 0, 42, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 117, 98, 108, 105, 99, 75, 101), ::capnp::word(121, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 27, 230, 241, 169, 103, 213, 226), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(104, 111, 112, 67, 111, 117, 110, 116), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(6, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(6, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(104, 111, 112, 115, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[1,2,0]; pub const TYPE_ID: u64 = 0x8a83_fccb_0851_e776; } pub mod hops { pub use self::Which::{FirstHop,Data,Empty}; #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn has_first_hop(&self) -> bool { if self.reader.get_data_field::(1) != 0 { return false; } !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn has_data(&self) -> bool { if self.reader.get_data_field::(1) != 1 { return false; } !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.reader.get_data_field::(1) { 0 => { ::core::result::Result::Ok(FirstHop( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(Data( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) )) } 2 => { ::core::result::Result::Ok(Empty( () )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn set_first_hop(&mut self, value: crate::veilid_capnp::route_hop::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(1, 0); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_first_hop(self, ) -> crate::veilid_capnp::route_hop::Builder<'a> { self.builder.set_data_field::(1, 0); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_first_hop(&self) -> bool { if self.builder.get_data_field::(1) != 0 { return false; } !self.builder.is_pointer_field_null(1) } #[inline] pub fn set_data(&mut self, value: crate::veilid_capnp::route_hop_data::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(1, 1); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_data(self, ) -> crate::veilid_capnp::route_hop_data::Builder<'a> { self.builder.set_data_field::(1, 1); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_data(&self) -> bool { if self.builder.get_data_field::(1) != 1 { return false; } !self.builder.is_pointer_field_null(1) } #[inline] pub fn set_empty(&mut self, _value: ()) { self.builder.set_data_field::(1, 2); } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.builder.get_data_field::(1) { 0 => { ::core::result::Result::Ok(FirstHop( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(Data( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) )) } 2 => { ::core::result::Result::Ok(Empty( () )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 64] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(56, 83, 93, 93, 37, 237, 192, 139), ::capnp::word(32, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(118, 231, 81, 8, 203, 252, 131, 138), ::capnp::word(2, 0, 7, 0, 1, 0, 3, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 42, 1, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 175, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 80, 114, 105, 118, 97), ::capnp::word(116, 101, 82, 111, 117, 116, 101, 46), ::capnp::word(104, 111, 112, 115, 0, 0, 0, 0), ::capnp::word(12, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 255, 255, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(69, 0, 0, 0, 74, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(68, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(80, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 254, 255, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(77, 0, 0, 0, 42, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(72, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(84, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 253, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 4, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(81, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(76, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(88, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(102, 105, 114, 115, 116, 72, 111, 112), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(59, 12, 206, 92, 215, 114, 246, 248), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(100, 97, 116, 97, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(242, 173, 183, 209, 249, 49, 226, 140), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(101, 109, 112, 116, 121, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => <() as ::capnp::introspect::Introspect>::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[0,1,2]; pub static MEMBERS_BY_NAME : &[u16] = &[1,2,0]; pub const TYPE_ID: u64 = 0x8bc0_ed25_5d5d_5338; } pub enum Which { FirstHop(A0), Data(A1), Empty(()), } pub type WhichReader<'a,> = Which<::capnp::Result>,::capnp::Result>>; pub type WhichBuilder<'a,> = Which<::capnp::Result>,::capnp::Result>>; } } pub mod safety_route { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_public_key(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_public_key(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_hop_count(self) -> u8 { self.reader.get_data_field::(0) } #[inline] pub fn get_hops(self) -> crate::veilid_capnp::safety_route::hops::Reader<'a> { self.reader.into() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_public_key(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_public_key(&mut self, value: crate::veilid_capnp::typed_key::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_public_key(self, ) -> crate::veilid_capnp::typed_key::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_public_key(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_hop_count(self) -> u8 { self.builder.get_data_field::(0) } #[inline] pub fn set_hop_count(&mut self, value: u8) { self.builder.set_data_field::(0, value); } #[inline] pub fn get_hops(self) -> crate::veilid_capnp::safety_route::hops::Builder<'a> { self.builder.into() } #[inline] pub fn init_hops(mut self, ) -> crate::veilid_capnp::safety_route::hops::Builder<'a> { self.builder.set_data_field::(1, 0); self.builder.reborrow().get_pointer_field(1).clear(); self.builder.into() } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_public_key(&self) -> crate::veilid_capnp::typed_key::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } pub fn get_hops(&self) -> crate::veilid_capnp::safety_route::hops::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.noop()) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 58] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(89, 93, 203, 7, 77, 115, 84, 245), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(2, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 250, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 175, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 83, 97, 102, 101, 116), ::capnp::word(121, 82, 111, 117, 116, 101, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(12, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(69, 0, 0, 0, 82, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(68, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(80, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(77, 0, 0, 0, 74, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(76, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(88, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(26, 107, 173, 97, 187, 247, 201, 172), ::capnp::word(85, 0, 0, 0, 42, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 117, 98, 108, 105, 99, 75, 101), ::capnp::word(121, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 27, 230, 241, 169, 103, 213, 226), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(104, 111, 112, 67, 111, 117, 110, 116), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(6, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(6, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(104, 111, 112, 115, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[1,2,0]; pub const TYPE_ID: u64 = 0xf554_734d_07cb_5d59; } pub mod hops { pub use self::Which::{Data,Private}; #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn has_data(&self) -> bool { if self.reader.get_data_field::(1) != 0 { return false; } !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn has_private(&self) -> bool { if self.reader.get_data_field::(1) != 1 { return false; } !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.reader.get_data_field::(1) { 0 => { ::core::result::Result::Ok(Data( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(Private( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn set_data(&mut self, value: crate::veilid_capnp::route_hop_data::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(1, 0); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_data(self, ) -> crate::veilid_capnp::route_hop_data::Builder<'a> { self.builder.set_data_field::(1, 0); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_data(&self) -> bool { if self.builder.get_data_field::(1) != 0 { return false; } !self.builder.is_pointer_field_null(1) } #[inline] pub fn set_private(&mut self, value: crate::veilid_capnp::private_route::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(1, 1); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_private(self, ) -> crate::veilid_capnp::private_route::Builder<'a> { self.builder.set_data_field::(1, 1); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_private(&self) -> bool { if self.builder.get_data_field::(1) != 1 { return false; } !self.builder.is_pointer_field_null(1) } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.builder.get_data_field::(1) { 0 => { ::core::result::Result::Ok(Data( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(Private( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 48] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(26, 107, 173, 97, 187, 247, 201, 172), ::capnp::word(31, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(89, 93, 203, 7, 77, 115, 84, 245), ::capnp::word(2, 0, 7, 0, 1, 0, 2, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 34, 1, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 83, 97, 102, 101, 116), ::capnp::word(121, 82, 111, 117, 116, 101, 46, 104), ::capnp::word(111, 112, 115, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 255, 255, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 42, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(36, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(48, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 254, 255, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(45, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(40, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(52, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(100, 97, 116, 97, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(242, 173, 183, 209, 249, 49, 226, 140), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 105, 118, 97, 116, 101, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(118, 231, 81, 8, 203, 252, 131, 138), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[0,1]; pub static MEMBERS_BY_NAME : &[u16] = &[0,1]; pub const TYPE_ID: u64 = 0xacc9_f7bb_61ad_6b1a; } pub enum Which { Data(A0), Private(A1), } pub type WhichReader<'a,> = Which<::capnp::Result>,::capnp::Result>>; pub type WhichBuilder<'a,> = Which<::capnp::Result>,::capnp::Result>>; } } #[repr(u16)] #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub enum NetworkClass { Invalid = 0, InboundCapable = 1, OutboundOnly = 2, WebApp = 3, } impl ::capnp::introspect::Introspect for NetworkClass { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Enum(::capnp::introspect::RawEnumSchema { encoded_node: &network_class::ENCODED_NODE, annotation_types: network_class::get_annotation_types }).into() } } impl <'a> ::core::convert::From for ::capnp::dynamic_value::Reader<'a> { fn from(e: NetworkClass) -> Self { ::capnp::dynamic_value::Enum::new(e.into(), ::capnp::introspect::RawEnumSchema { encoded_node: &network_class::ENCODED_NODE, annotation_types: network_class::get_annotation_types }.into()).into() } } impl ::core::convert::TryFrom for NetworkClass { type Error = ::capnp::NotInSchema; fn try_from(value: u16) -> ::core::result::Result>::Error> { match value { 0 => ::core::result::Result::Ok(Self::Invalid), 1 => ::core::result::Result::Ok(Self::InboundCapable), 2 => ::core::result::Result::Ok(Self::OutboundOnly), 3 => ::core::result::Result::Ok(Self::WebApp), n => ::core::result::Result::Err(::capnp::NotInSchema(n)), } } } impl From for u16 { #[inline] fn from(x: NetworkClass) -> u16 { x as u16 } } impl ::capnp::traits::HasTypeId for NetworkClass { const TYPE_ID: u64 = 0x8ceb_fc2a_6230_717fu64; } mod network_class { pub static ENCODED_NODE: [::capnp::Word; 36] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(127, 113, 48, 98, 42, 252, 235, 140), ::capnp::word(19, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 2, 1, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 103, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 78, 101, 116, 119, 111), ::capnp::word(114, 107, 67, 108, 97, 115, 115, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 1, 0, 2, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 122, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(2, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 106, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(3, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(25, 0, 0, 0, 58, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(105, 110, 118, 97, 108, 105, 100, 0), ::capnp::word(105, 110, 98, 111, 117, 110, 100, 67), ::capnp::word(97, 112, 97, 98, 108, 101, 0, 0), ::capnp::word(111, 117, 116, 98, 111, 117, 110, 100), ::capnp::word(79, 110, 108, 121, 0, 0, 0, 0), ::capnp::word(119, 101, 98, 65, 112, 112, 0, 0), ]; pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } } #[repr(u16)] #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub enum DialInfoClass { Direct = 0, Mapped = 1, FullConeNAT = 2, Blocked = 3, AddressRestrictedNAT = 4, PortRestrictedNAT = 5, } impl ::capnp::introspect::Introspect for DialInfoClass { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Enum(::capnp::introspect::RawEnumSchema { encoded_node: &dial_info_class::ENCODED_NODE, annotation_types: dial_info_class::get_annotation_types }).into() } } impl <'a> ::core::convert::From for ::capnp::dynamic_value::Reader<'a> { fn from(e: DialInfoClass) -> Self { ::capnp::dynamic_value::Enum::new(e.into(), ::capnp::introspect::RawEnumSchema { encoded_node: &dial_info_class::ENCODED_NODE, annotation_types: dial_info_class::get_annotation_types }.into()).into() } } impl ::core::convert::TryFrom for DialInfoClass { type Error = ::capnp::NotInSchema; fn try_from(value: u16) -> ::core::result::Result>::Error> { match value { 0 => ::core::result::Result::Ok(Self::Direct), 1 => ::core::result::Result::Ok(Self::Mapped), 2 => ::core::result::Result::Ok(Self::FullConeNAT), 3 => ::core::result::Result::Ok(Self::Blocked), 4 => ::core::result::Result::Ok(Self::AddressRestrictedNAT), 5 => ::core::result::Result::Ok(Self::PortRestrictedNAT), n => ::core::result::Result::Err(::capnp::NotInSchema(n)), } } } impl From for u16 { #[inline] fn from(x: DialInfoClass) -> u16 { x as u16 } } impl ::capnp::traits::HasTypeId for DialInfoClass { const TYPE_ID: u64 = 0x8800_05ed_fdd3_8b1eu64; } mod dial_info_class { pub static ENCODED_NODE: [::capnp::Word; 48] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(30, 139, 211, 253, 237, 5, 0, 136), ::capnp::word(19, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 10, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 151, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 68, 105, 97, 108, 73), ::capnp::word(110, 102, 111, 67, 108, 97, 115, 115), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(24, 0, 0, 0, 1, 0, 2, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(65, 0, 0, 0, 58, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(57, 0, 0, 0, 58, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(2, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(49, 0, 0, 0, 98, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(3, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(45, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(4, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(37, 0, 0, 0, 170, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(5, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(37, 0, 0, 0, 146, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(100, 105, 114, 101, 99, 116, 0, 0), ::capnp::word(109, 97, 112, 112, 101, 100, 0, 0), ::capnp::word(102, 117, 108, 108, 67, 111, 110, 101), ::capnp::word(78, 65, 84, 0, 0, 0, 0, 0), ::capnp::word(98, 108, 111, 99, 107, 101, 100, 0), ::capnp::word(97, 100, 100, 114, 101, 115, 115, 82), ::capnp::word(101, 115, 116, 114, 105, 99, 116, 101), ::capnp::word(100, 78, 65, 84, 0, 0, 0, 0), ::capnp::word(112, 111, 114, 116, 82, 101, 115, 116), ::capnp::word(114, 105, 99, 116, 101, 100, 78, 65), ::capnp::word(84, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } } #[repr(u16)] #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub enum Sequencing { NoPreference = 0, PreferOrdered = 1, EnsureOrdered = 2, } impl ::capnp::introspect::Introspect for Sequencing { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Enum(::capnp::introspect::RawEnumSchema { encoded_node: &sequencing::ENCODED_NODE, annotation_types: sequencing::get_annotation_types }).into() } } impl <'a> ::core::convert::From for ::capnp::dynamic_value::Reader<'a> { fn from(e: Sequencing) -> Self { ::capnp::dynamic_value::Enum::new(e.into(), ::capnp::introspect::RawEnumSchema { encoded_node: &sequencing::ENCODED_NODE, annotation_types: sequencing::get_annotation_types }.into()).into() } } impl ::core::convert::TryFrom for Sequencing { type Error = ::capnp::NotInSchema; fn try_from(value: u16) -> ::core::result::Result>::Error> { match value { 0 => ::core::result::Result::Ok(Self::NoPreference), 1 => ::core::result::Result::Ok(Self::PreferOrdered), 2 => ::core::result::Result::Ok(Self::EnsureOrdered), n => ::core::result::Result::Err(::capnp::NotInSchema(n)), } } } impl From for u16 { #[inline] fn from(x: Sequencing) -> u16 { x as u16 } } impl ::capnp::traits::HasTypeId for Sequencing { const TYPE_ID: u64 = 0xb673_5890_f781_8a1cu64; } mod sequencing { pub static ENCODED_NODE: [::capnp::Word; 33] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(28, 138, 129, 247, 144, 88, 115, 182), ::capnp::word(19, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 242, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 79, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 83, 101, 113, 117, 101), ::capnp::word(110, 99, 105, 110, 103, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(12, 0, 0, 0, 1, 0, 2, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 106, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(25, 0, 0, 0, 114, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(2, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 114, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(110, 111, 80, 114, 101, 102, 101, 114), ::capnp::word(101, 110, 99, 101, 0, 0, 0, 0), ::capnp::word(112, 114, 101, 102, 101, 114, 79, 114), ::capnp::word(100, 101, 114, 101, 100, 0, 0, 0), ::capnp::word(101, 110, 115, 117, 114, 101, 79, 114), ::capnp::word(100, 101, 114, 101, 100, 0, 0, 0), ]; pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } } pub mod dial_info_detail { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_dial_info(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_dial_info(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_class(self) -> ::core::result::Result { ::core::convert::TryInto::try_into(self.reader.get_data_field::(0)) } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_dial_info(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_dial_info(&mut self, value: crate::veilid_capnp::dial_info::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_dial_info(self, ) -> crate::veilid_capnp::dial_info::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_dial_info(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_class(self) -> ::core::result::Result { ::core::convert::TryInto::try_into(self.builder.get_data_field::(0)) } #[inline] pub fn set_class(&mut self, value: crate::veilid_capnp::DialInfoClass) { self.builder.set_data_field::(0, value as u16); } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_dial_info(&self) -> crate::veilid_capnp::dial_info::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 50] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(216, 116, 123, 214, 161, 58, 66, 150), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 18, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 68, 105, 97, 108, 73), ::capnp::word(110, 102, 111, 68, 101, 116, 97, 105), ::capnp::word(108, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 74, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(40, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(52, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(49, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(44, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(56, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(100, 105, 97, 108, 73, 110, 102, 111), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(223, 239, 45, 252, 57, 28, 205, 225), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(99, 108, 97, 115, 115, 0, 0, 0), ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(30, 139, 211, 253, 237, 5, 0, 136), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[1,0]; pub const TYPE_ID: u64 = 0x9642_3aa1_d67b_74d8; } } pub mod node_status { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 0 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 17] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(13, 51, 243, 59, 122, 158, 107, 211), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(0, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 242, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 78, 111, 100, 101, 83), ::capnp::word(116, 97, 116, 117, 115, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { panic!("invalid field index {}", index) } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[]; pub const TYPE_ID: u64 = 0xd36b_9e7a_3bf3_330d; } } pub mod protocol_type_set { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_udp(self) -> bool { self.reader.get_bool_field(0) } #[inline] pub fn get_tcp(self) -> bool { self.reader.get_bool_field(1) } #[inline] pub fn get_ws(self) -> bool { self.reader.get_bool_field(2) } #[inline] pub fn get_wss(self) -> bool { self.reader.get_bool_field(3) } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 0 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_udp(self) -> bool { self.builder.get_bool_field(0) } #[inline] pub fn set_udp(&mut self, value: bool) { self.builder.set_bool_field(0, value); } #[inline] pub fn get_tcp(self) -> bool { self.builder.get_bool_field(1) } #[inline] pub fn set_tcp(&mut self, value: bool) { self.builder.set_bool_field(1, value); } #[inline] pub fn get_ws(self) -> bool { self.builder.get_bool_field(2) } #[inline] pub fn set_ws(&mut self, value: bool) { self.builder.set_bool_field(2, value); } #[inline] pub fn get_wss(self) -> bool { self.builder.get_bool_field(3) } #[inline] pub fn set_wss(&mut self, value: bool) { self.builder.set_bool_field(3, value); } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 79] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(38, 51, 183, 161, 85, 47, 241, 130), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(0, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 26, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 231, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 80, 114, 111, 116, 111), ::capnp::word(99, 111, 108, 84, 121, 112, 101, 83), ::capnp::word(101, 116, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(97, 0, 0, 0, 34, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(92, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(104, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(101, 0, 0, 0, 34, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(96, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(108, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(105, 0, 0, 0, 26, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(100, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(112, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(3, 0, 0, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(109, 0, 0, 0, 34, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(104, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(116, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(117, 100, 112, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(116, 99, 112, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(119, 115, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(119, 115, 115, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => ::introspect(), 3 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[1,0,2,3]; pub const TYPE_ID: u64 = 0x82f1_2f55_a1b7_3326; } } pub mod address_type_set { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_ipv4(self) -> bool { self.reader.get_bool_field(0) } #[inline] pub fn get_ipv6(self) -> bool { self.reader.get_bool_field(1) } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 0 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_ipv4(self) -> bool { self.builder.get_bool_field(0) } #[inline] pub fn set_ipv4(&mut self, value: bool) { self.builder.set_bool_field(0, value); } #[inline] pub fn get_ipv6(self) -> bool { self.builder.get_bool_field(1) } #[inline] pub fn set_ipv6(&mut self, value: bool) { self.builder.set_bool_field(1, value); } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 49] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(107, 158, 52, 13, 67, 213, 82, 159), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(0, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 18, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 65, 100, 100, 114, 101), ::capnp::word(115, 115, 84, 121, 112, 101, 83, 101), ::capnp::word(116, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 42, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(36, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(48, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(45, 0, 0, 0, 42, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(40, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(52, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(105, 112, 118, 52, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(105, 112, 118, 54, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0,1]; pub const TYPE_ID: u64 = 0x9f52_d543_0d34_9e6b; } } pub mod sender_info { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_socket_address(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_socket_address(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_socket_address(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_socket_address(&mut self, value: crate::veilid_capnp::socket_address::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_socket_address(self, ) -> crate::veilid_capnp::socket_address::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_socket_address(&self) -> bool { !self.builder.is_pointer_field_null(0) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_socket_address(&self) -> crate::veilid_capnp::socket_address::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 34] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(1, 209, 177, 180, 250, 100, 68, 138), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 242, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 63, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 83, 101, 110, 100, 101), ::capnp::word(114, 73, 110, 102, 111, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(4, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 114, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(12, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(24, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(115, 111, 99, 107, 101, 116, 65, 100), ::capnp::word(100, 114, 101, 115, 115, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(98, 58, 221, 244, 114, 66, 223, 130), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0]; pub const TYPE_ID: u64 = 0x8a44_64fa_b4b1_d101; } } pub mod node_info { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_network_class(self) -> ::core::result::Result { ::core::convert::TryInto::try_into(self.reader.get_data_field::(0)) } #[inline] pub fn get_outbound_protocols(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_outbound_protocols(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_address_types(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_address_types(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn get_envelope_support(self) -> ::capnp::Result<::capnp::primitive_list::Reader<'a,u8>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn has_envelope_support(&self) -> bool { !self.reader.get_pointer_field(2).is_null() } #[inline] pub fn get_crypto_support(self) -> ::capnp::Result<::capnp::primitive_list::Reader<'a,u32>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(3), ::core::option::Option::None) } #[inline] pub fn has_crypto_support(&self) -> bool { !self.reader.get_pointer_field(3).is_null() } #[inline] pub fn get_capabilities(self) -> ::capnp::Result<::capnp::primitive_list::Reader<'a,u32>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(4), ::core::option::Option::None) } #[inline] pub fn has_capabilities(&self) -> bool { !self.reader.get_pointer_field(4).is_null() } #[inline] pub fn get_dial_info_detail_list(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::veilid_capnp::dial_info_detail::Owned>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(5), ::core::option::Option::None) } #[inline] pub fn has_dial_info_detail_list(&self) -> bool { !self.reader.get_pointer_field(5).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 6 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_network_class(self) -> ::core::result::Result { ::core::convert::TryInto::try_into(self.builder.get_data_field::(0)) } #[inline] pub fn set_network_class(&mut self, value: crate::veilid_capnp::NetworkClass) { self.builder.set_data_field::(0, value as u16); } #[inline] pub fn get_outbound_protocols(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_outbound_protocols(&mut self, value: crate::veilid_capnp::protocol_type_set::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_outbound_protocols(self, ) -> crate::veilid_capnp::protocol_type_set::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_outbound_protocols(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_address_types(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_address_types(&mut self, value: crate::veilid_capnp::address_type_set::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_address_types(self, ) -> crate::veilid_capnp::address_type_set::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_address_types(&self) -> bool { !self.builder.is_pointer_field_null(1) } #[inline] pub fn get_envelope_support(self) -> ::capnp::Result<::capnp::primitive_list::Builder<'a,u8>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn set_envelope_support(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::primitive_list::Owned>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(2), value, false) } #[inline] pub fn init_envelope_support(self, size: u32) -> ::capnp::primitive_list::Builder<'a,u8> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(2), size) } #[inline] pub fn has_envelope_support(&self) -> bool { !self.builder.is_pointer_field_null(2) } #[inline] pub fn get_crypto_support(self) -> ::capnp::Result<::capnp::primitive_list::Builder<'a,u32>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(3), ::core::option::Option::None) } #[inline] pub fn set_crypto_support(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::primitive_list::Owned>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(3), value, false) } #[inline] pub fn init_crypto_support(self, size: u32) -> ::capnp::primitive_list::Builder<'a,u32> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(3), size) } #[inline] pub fn has_crypto_support(&self) -> bool { !self.builder.is_pointer_field_null(3) } #[inline] pub fn get_capabilities(self) -> ::capnp::Result<::capnp::primitive_list::Builder<'a,u32>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(4), ::core::option::Option::None) } #[inline] pub fn set_capabilities(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::primitive_list::Owned>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(4), value, false) } #[inline] pub fn init_capabilities(self, size: u32) -> ::capnp::primitive_list::Builder<'a,u32> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(4), size) } #[inline] pub fn has_capabilities(&self) -> bool { !self.builder.is_pointer_field_null(4) } #[inline] pub fn get_dial_info_detail_list(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::veilid_capnp::dial_info_detail::Owned>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(5), ::core::option::Option::None) } #[inline] pub fn set_dial_info_detail_list(&mut self, value: ::capnp::struct_list::Reader<'_,crate::veilid_capnp::dial_info_detail::Owned>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(5), value, false) } #[inline] pub fn init_dial_info_detail_list(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::veilid_capnp::dial_info_detail::Owned> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(5), size) } #[inline] pub fn has_dial_info_detail_list(&self) -> bool { !self.builder.is_pointer_field_null(5) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_outbound_protocols(&self) -> crate::veilid_capnp::protocol_type_set::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } pub fn get_address_types(&self) -> crate::veilid_capnp::address_type_set::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(1)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 148] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(25, 244, 249, 227, 71, 216, 37, 225), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(6, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 226, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 143, 1, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 78, 111, 100, 101, 73), ::capnp::word(110, 102, 111, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(28, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(181, 0, 0, 0, 106, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(180, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(192, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(189, 0, 0, 0, 146, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(192, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(204, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(201, 0, 0, 0, 106, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(200, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(212, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(3, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(209, 0, 0, 0, 130, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(208, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(236, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(4, 0, 0, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 4, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(233, 0, 0, 0, 114, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(232, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(4, 1, 0, 0, 2, 0, 1, 0), ::capnp::word(5, 0, 0, 0, 4, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 5, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 1, 0, 0, 106, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 1, 0, 0, 3, 0, 1, 0), ::capnp::word(28, 1, 0, 0, 2, 0, 1, 0), ::capnp::word(6, 0, 0, 0, 5, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 6, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(25, 1, 0, 0, 154, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(28, 1, 0, 0, 3, 0, 1, 0), ::capnp::word(56, 1, 0, 0, 2, 0, 1, 0), ::capnp::word(110, 101, 116, 119, 111, 114, 107, 67), ::capnp::word(108, 97, 115, 115, 0, 0, 0, 0), ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(127, 113, 48, 98, 42, 252, 235, 140), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(111, 117, 116, 98, 111, 117, 110, 100), ::capnp::word(80, 114, 111, 116, 111, 99, 111, 108), ::capnp::word(115, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(38, 51, 183, 161, 85, 47, 241, 130), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(97, 100, 100, 114, 101, 115, 115, 84), ::capnp::word(121, 112, 101, 115, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(107, 158, 52, 13, 67, 213, 82, 159), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(101, 110, 118, 101, 108, 111, 112, 101), ::capnp::word(83, 117, 112, 112, 111, 114, 116, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(6, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(99, 114, 121, 112, 116, 111, 83, 117), ::capnp::word(112, 112, 111, 114, 116, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(99, 97, 112, 97, 98, 105, 108, 105), ::capnp::word(116, 105, 101, 115, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(100, 105, 97, 108, 73, 110, 102, 111), ::capnp::word(68, 101, 116, 97, 105, 108, 76, 105), ::capnp::word(115, 116, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(216, 116, 123, 214, 161, 58, 66, 150), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => ::introspect(), 3 => <::capnp::primitive_list::Owned as ::capnp::introspect::Introspect>::introspect(), 4 => <::capnp::primitive_list::Owned as ::capnp::introspect::Introspect>::introspect(), 5 => <::capnp::primitive_list::Owned as ::capnp::introspect::Introspect>::introspect(), 6 => <::capnp::struct_list::Owned as ::capnp::introspect::Introspect>::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3,4,5,6]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[2,5,4,6,3,0,1]; pub const TYPE_ID: u64 = 0xe125_d847_e3f9_f419; } } pub mod signed_direct_node_info { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_node_info(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_node_info(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_timestamp(self) -> u64 { self.reader.get_data_field::(0) } #[inline] pub fn get_signatures(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::veilid_capnp::typed_signature::Owned>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_signatures(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_node_info(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_node_info(&mut self, value: crate::veilid_capnp::node_info::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_node_info(self, ) -> crate::veilid_capnp::node_info::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_node_info(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_timestamp(self) -> u64 { self.builder.get_data_field::(0) } #[inline] pub fn set_timestamp(&mut self, value: u64) { self.builder.set_data_field::(0, value); } #[inline] pub fn get_signatures(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::veilid_capnp::typed_signature::Owned>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_signatures(&mut self, value: ::capnp::struct_list::Reader<'_,crate::veilid_capnp::typed_signature::Owned>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_signatures(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::veilid_capnp::typed_signature::Owned> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), size) } #[inline] pub fn has_signatures(&self) -> bool { !self.builder.is_pointer_field_null(1) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_node_info(&self) -> crate::veilid_capnp::node_info::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 71] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(215, 61, 58, 137, 62, 234, 231, 224), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(2, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 66, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 175, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 83, 105, 103, 110, 101), ::capnp::word(100, 68, 105, 114, 101, 99, 116, 78), ::capnp::word(111, 100, 101, 73, 110, 102, 111, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(12, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(69, 0, 0, 0, 74, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(68, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(80, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(77, 0, 0, 0, 82, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(76, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(88, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(85, 0, 0, 0, 90, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(84, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(112, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(110, 111, 100, 101, 73, 110, 102, 111), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(25, 244, 249, 227, 71, 216, 37, 225), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(116, 105, 109, 101, 115, 116, 97, 109), ::capnp::word(112, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(115, 105, 103, 110, 97, 116, 117, 114), ::capnp::word(101, 115, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(132, 56, 142, 41, 199, 112, 49, 150), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => <::capnp::struct_list::Owned as ::capnp::introspect::Introspect>::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0,2,1]; pub const TYPE_ID: u64 = 0xe0e7_ea3e_893a_3dd7; } } pub mod signed_relayed_node_info { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_node_info(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_node_info(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_relay_ids(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::veilid_capnp::typed_key::Owned>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_relay_ids(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn get_relay_info(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn has_relay_info(&self) -> bool { !self.reader.get_pointer_field(2).is_null() } #[inline] pub fn get_timestamp(self) -> u64 { self.reader.get_data_field::(0) } #[inline] pub fn get_signatures(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::veilid_capnp::typed_signature::Owned>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(3), ::core::option::Option::None) } #[inline] pub fn has_signatures(&self) -> bool { !self.reader.get_pointer_field(3).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 4 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_node_info(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_node_info(&mut self, value: crate::veilid_capnp::node_info::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_node_info(self, ) -> crate::veilid_capnp::node_info::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_node_info(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_relay_ids(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::veilid_capnp::typed_key::Owned>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_relay_ids(&mut self, value: ::capnp::struct_list::Reader<'_,crate::veilid_capnp::typed_key::Owned>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_relay_ids(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::veilid_capnp::typed_key::Owned> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), size) } #[inline] pub fn has_relay_ids(&self) -> bool { !self.builder.is_pointer_field_null(1) } #[inline] pub fn get_relay_info(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn set_relay_info(&mut self, value: crate::veilid_capnp::signed_direct_node_info::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(2), value, false) } #[inline] pub fn init_relay_info(self, ) -> crate::veilid_capnp::signed_direct_node_info::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(2), 0) } #[inline] pub fn has_relay_info(&self) -> bool { !self.builder.is_pointer_field_null(2) } #[inline] pub fn get_timestamp(self) -> u64 { self.builder.get_data_field::(0) } #[inline] pub fn set_timestamp(&mut self, value: u64) { self.builder.set_data_field::(0, value); } #[inline] pub fn get_signatures(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::veilid_capnp::typed_signature::Owned>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(3), ::core::option::Option::None) } #[inline] pub fn set_signatures(&mut self, value: ::capnp::struct_list::Reader<'_,crate::veilid_capnp::typed_signature::Owned>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(3), value, false) } #[inline] pub fn init_signatures(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::veilid_capnp::typed_signature::Owned> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(3), size) } #[inline] pub fn has_signatures(&self) -> bool { !self.builder.is_pointer_field_null(3) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_node_info(&self) -> crate::veilid_capnp::node_info::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } pub fn get_relay_info(&self) -> crate::veilid_capnp::signed_direct_node_info::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(2)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 108] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(187, 124, 216, 204, 40, 132, 158, 179), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(4, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 74, 1, 0, 0), ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(37, 0, 0, 0, 31, 1, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 83, 105, 103, 110, 101), ::capnp::word(100, 82, 101, 108, 97, 121, 101, 100), ::capnp::word(78, 111, 100, 101, 73, 110, 102, 111), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(20, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(125, 0, 0, 0, 74, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(124, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(136, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(133, 0, 0, 0, 74, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(132, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(160, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(157, 0, 0, 0, 82, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(156, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(168, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(3, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(165, 0, 0, 0, 82, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(164, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(176, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(4, 0, 0, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 4, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(173, 0, 0, 0, 90, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(172, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(200, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(110, 111, 100, 101, 73, 110, 102, 111), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(25, 244, 249, 227, 71, 216, 37, 225), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(114, 101, 108, 97, 121, 73, 100, 115), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 27, 230, 241, 169, 103, 213, 226), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(114, 101, 108, 97, 121, 73, 110, 102), ::capnp::word(111, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(215, 61, 58, 137, 62, 234, 231, 224), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(116, 105, 109, 101, 115, 116, 97, 109), ::capnp::word(112, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(115, 105, 103, 110, 97, 116, 117, 114), ::capnp::word(101, 115, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(132, 56, 142, 41, 199, 112, 49, 150), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => <::capnp::struct_list::Owned as ::capnp::introspect::Introspect>::introspect(), 2 => ::introspect(), 3 => ::introspect(), 4 => <::capnp::struct_list::Owned as ::capnp::introspect::Introspect>::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3,4]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0,1,2,4,3]; pub const TYPE_ID: u64 = 0xb39e_8428_ccd8_7cbb; } } pub mod signed_node_info { pub use self::Which::{Direct,Relayed}; #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn has_direct(&self) -> bool { if self.reader.get_data_field::(0) != 0 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_relayed(&self) -> bool { if self.reader.get_data_field::(0) != 1 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.reader.get_data_field::(0) { 0 => { ::core::result::Result::Ok(Direct( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(Relayed( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn set_direct(&mut self, value: crate::veilid_capnp::signed_direct_node_info::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 0); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_direct(self, ) -> crate::veilid_capnp::signed_direct_node_info::Builder<'a> { self.builder.set_data_field::(0, 0); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_direct(&self) -> bool { if self.builder.get_data_field::(0) != 0 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_relayed(&mut self, value: crate::veilid_capnp::signed_relayed_node_info::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 1); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_relayed(self, ) -> crate::veilid_capnp::signed_relayed_node_info::Builder<'a> { self.builder.set_data_field::(0, 1); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_relayed(&self) -> bool { if self.builder.get_data_field::(0) != 1 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.builder.get_data_field::(0) { 0 => { ::core::result::Result::Ok(Direct( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(Relayed( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 49] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(106, 64, 147, 245, 229, 140, 71, 210), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 2, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 18, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 83, 105, 103, 110, 101), ::capnp::word(100, 78, 111, 100, 101, 73, 110, 102), ::capnp::word(111, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 255, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 58, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(36, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(48, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 254, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(45, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(40, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(52, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(100, 105, 114, 101, 99, 116, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(215, 61, 58, 137, 62, 234, 231, 224), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(114, 101, 108, 97, 121, 101, 100, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(187, 124, 216, 204, 40, 132, 158, 179), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[0,1]; pub static MEMBERS_BY_NAME : &[u16] = &[0,1]; pub const TYPE_ID: u64 = 0xd247_8ce5_f593_406a; } pub enum Which { Direct(A0), Relayed(A1), } pub type WhichReader<'a,> = Which<::capnp::Result>,::capnp::Result>>; pub type WhichBuilder<'a,> = Which<::capnp::Result>,::capnp::Result>>; } pub mod peer_info { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_node_ids(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::veilid_capnp::typed_key::Owned>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_node_ids(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_signed_node_info(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_signed_node_info(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_node_ids(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::veilid_capnp::typed_key::Owned>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_node_ids(&mut self, value: ::capnp::struct_list::Reader<'_,crate::veilid_capnp::typed_key::Owned>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_node_ids(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::veilid_capnp::typed_key::Owned> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), size) } #[inline] pub fn has_node_ids(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_signed_node_info(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_signed_node_info(&mut self, value: crate::veilid_capnp::signed_node_info::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_signed_node_info(self, ) -> crate::veilid_capnp::signed_node_info::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_signed_node_info(&self) -> bool { !self.builder.is_pointer_field_null(1) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_signed_node_info(&self) -> crate::veilid_capnp::signed_node_info::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(1)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 53] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(203, 75, 60, 93, 45, 114, 45, 254), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(2, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 226, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 80, 101, 101, 114, 73), ::capnp::word(110, 102, 111, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(36, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(64, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(61, 0, 0, 0, 122, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(60, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(72, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(110, 111, 100, 101, 73, 100, 115, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 27, 230, 241, 169, 103, 213, 226), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(115, 105, 103, 110, 101, 100, 78, 111), ::capnp::word(100, 101, 73, 110, 102, 111, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(106, 64, 147, 245, 229, 140, 71, 210), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => <::capnp::struct_list::Owned as ::capnp::introspect::Introspect>::introspect(), 1 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0,1]; pub const TYPE_ID: u64 = 0xfe2d_722d_5d3c_4bcb; } } pub mod routed_operation { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_sequencing(self) -> ::core::result::Result { ::core::convert::TryInto::try_into(self.reader.get_data_field::(0)) } #[inline] pub fn get_signatures(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::veilid_capnp::signature512::Owned>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_signatures(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_nonce(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_nonce(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn get_data(self) -> ::capnp::Result<::capnp::data::Reader<'a>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn has_data(&self) -> bool { !self.reader.get_pointer_field(2).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 3 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_sequencing(self) -> ::core::result::Result { ::core::convert::TryInto::try_into(self.builder.get_data_field::(0)) } #[inline] pub fn set_sequencing(&mut self, value: crate::veilid_capnp::Sequencing) { self.builder.set_data_field::(0, value as u16); } #[inline] pub fn get_signatures(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::veilid_capnp::signature512::Owned>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_signatures(&mut self, value: ::capnp::struct_list::Reader<'_,crate::veilid_capnp::signature512::Owned>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_signatures(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::veilid_capnp::signature512::Owned> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), size) } #[inline] pub fn has_signatures(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_nonce(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_nonce(&mut self, value: crate::veilid_capnp::nonce24::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_nonce(self, ) -> crate::veilid_capnp::nonce24::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_nonce(&self) -> bool { !self.builder.is_pointer_field_null(1) } #[inline] pub fn get_data(self) -> ::capnp::Result<::capnp::data::Builder<'a>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn set_data(&mut self, value: ::capnp::data::Reader<'_>) { self.builder.reborrow().get_pointer_field(2).set_data(value); } #[inline] pub fn init_data(self, size: u32) -> ::capnp::data::Builder<'a> { self.builder.get_pointer_field(2).init_data(size) } #[inline] pub fn has_data(&self) -> bool { !self.builder.is_pointer_field_null(2) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_nonce(&self) -> crate::veilid_capnp::nonce24::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(1)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 85] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(221, 233, 57, 184, 53, 133, 203, 203), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(3, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 26, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 231, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 82, 111, 117, 116, 101), ::capnp::word(100, 79, 112, 101, 114, 97, 116, 105), ::capnp::word(111, 110, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(97, 0, 0, 0, 90, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(96, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(108, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(105, 0, 0, 0, 90, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(104, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(132, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(129, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(124, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(136, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(3, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(133, 0, 0, 0, 42, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(128, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(140, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(115, 101, 113, 117, 101, 110, 99, 105), ::capnp::word(110, 103, 0, 0, 0, 0, 0, 0), ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(28, 138, 129, 247, 144, 88, 115, 182), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(115, 105, 103, 110, 97, 116, 117, 114), ::capnp::word(101, 115, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(18, 156, 18, 58, 4, 73, 103, 128), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(110, 111, 110, 99, 101, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(252, 125, 141, 93, 178, 13, 38, 182), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(100, 97, 116, 97, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => <::capnp::struct_list::Owned as ::capnp::introspect::Introspect>::introspect(), 2 => ::introspect(), 3 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[3,2,0,1]; pub const TYPE_ID: u64 = 0xcbcb_8535_b839_e9dd; } } pub mod operation_status_q { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_node_status(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_node_status(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_node_status(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_node_status(&mut self, value: crate::veilid_capnp::node_status::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_node_status(self, ) -> crate::veilid_capnp::node_status::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_node_status(&self) -> bool { !self.builder.is_pointer_field_null(0) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_node_status(&self) -> crate::veilid_capnp::node_status::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 35] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(74, 136, 13, 167, 206, 128, 93, 134), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 34, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 63, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 83, 116, 97, 116), ::capnp::word(117, 115, 81, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(4, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 90, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(12, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(24, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(110, 111, 100, 101, 83, 116, 97, 116), ::capnp::word(117, 115, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 51, 243, 59, 122, 158, 107, 211), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0]; pub const TYPE_ID: u64 = 0x865d_80ce_a70d_884a; } } pub mod operation_status_a { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_node_status(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_node_status(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_sender_info(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_sender_info(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_node_status(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_node_status(&mut self, value: crate::veilid_capnp::node_status::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_node_status(self, ) -> crate::veilid_capnp::node_status::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_node_status(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_sender_info(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_sender_info(&mut self, value: crate::veilid_capnp::sender_info::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_sender_info(self, ) -> crate::veilid_capnp::sender_info::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_sender_info(&self) -> bool { !self.builder.is_pointer_field_null(1) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_node_status(&self) -> crate::veilid_capnp::node_status::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } pub fn get_sender_info(&self) -> crate::veilid_capnp::sender_info::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(1)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 51] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(85, 42, 129, 250, 7, 244, 6, 179), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(2, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 34, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 83, 116, 97, 116), ::capnp::word(117, 115, 65, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 90, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(40, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(52, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(49, 0, 0, 0, 90, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(48, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(60, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(110, 111, 100, 101, 83, 116, 97, 116), ::capnp::word(117, 115, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 51, 243, 59, 122, 158, 107, 211), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(115, 101, 110, 100, 101, 114, 73, 110), ::capnp::word(102, 111, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 209, 177, 180, 250, 100, 68, 138), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0,1]; pub const TYPE_ID: u64 = 0xb306_f407_fa81_2a55; } } pub mod operation_validate_dial_info { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_dial_info(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_dial_info(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_receipt(self) -> ::capnp::Result<::capnp::data::Reader<'a>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_receipt(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn get_redirect(self) -> bool { self.reader.get_bool_field(0) } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_dial_info(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_dial_info(&mut self, value: crate::veilid_capnp::dial_info::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_dial_info(self, ) -> crate::veilid_capnp::dial_info::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_dial_info(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_receipt(self) -> ::capnp::Result<::capnp::data::Builder<'a>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_receipt(&mut self, value: ::capnp::data::Reader<'_>) { self.builder.reborrow().get_pointer_field(1).set_data(value); } #[inline] pub fn init_receipt(self, size: u32) -> ::capnp::data::Builder<'a> { self.builder.get_pointer_field(1).init_data(size) } #[inline] pub fn has_receipt(&self) -> bool { !self.builder.is_pointer_field_null(1) } #[inline] pub fn get_redirect(self) -> bool { self.builder.get_bool_field(0) } #[inline] pub fn set_redirect(&mut self, value: bool) { self.builder.set_bool_field(0, value); } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_dial_info(&self) -> crate::veilid_capnp::dial_info::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 67] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(200, 96, 208, 213, 215, 106, 113, 188), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(2, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 106, 1, 0, 0), ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(37, 0, 0, 0, 175, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 86, 97, 108, 105), ::capnp::word(100, 97, 116, 101, 68, 105, 97, 108), ::capnp::word(73, 110, 102, 111, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(12, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(69, 0, 0, 0, 74, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(68, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(80, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(77, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(72, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(84, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(81, 0, 0, 0, 74, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(80, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(92, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(100, 105, 97, 108, 73, 110, 102, 111), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(223, 239, 45, 252, 57, 28, 205, 225), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(114, 101, 99, 101, 105, 112, 116, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(114, 101, 100, 105, 114, 101, 99, 116), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(), 2 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0,1,2]; pub const TYPE_ID: u64 = 0xbc71_6ad7_d5d0_60c8; } } pub mod operation_return_receipt { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_receipt(self) -> ::capnp::Result<::capnp::data::Reader<'a>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_receipt(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_receipt(self) -> ::capnp::Result<::capnp::data::Builder<'a>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_receipt(&mut self, value: ::capnp::data::Reader<'_>) { self.builder.reborrow().get_pointer_field(0).set_data(value); } #[inline] pub fn init_receipt(self, size: u32) -> ::capnp::data::Builder<'a> { self.builder.get_pointer_field(0).init_data(size) } #[inline] pub fn has_receipt(&self) -> bool { !self.builder.is_pointer_field_null(0) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 35] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(235, 14, 22, 169, 181, 181, 15, 235), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 82, 1, 0, 0), ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(37, 0, 0, 0, 63, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 82, 101, 116, 117), ::capnp::word(114, 110, 82, 101, 99, 101, 105, 112), ::capnp::word(116, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(4, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(20, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(114, 101, 99, 101, 105, 112, 116, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0]; pub const TYPE_ID: u64 = 0xeb0f_b5b5_a916_0eeb; } } pub mod operation_find_node_q { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_node_id(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_node_id(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_capabilities(self) -> ::capnp::Result<::capnp::primitive_list::Reader<'a,u32>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_capabilities(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_node_id(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_node_id(&mut self, value: crate::veilid_capnp::typed_key::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_node_id(self, ) -> crate::veilid_capnp::typed_key::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_node_id(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_capabilities(self) -> ::capnp::Result<::capnp::primitive_list::Builder<'a,u32>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_capabilities(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::primitive_list::Owned>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_capabilities(self, size: u32) -> ::capnp::primitive_list::Builder<'a,u32> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), size) } #[inline] pub fn has_capabilities(&self) -> bool { !self.builder.is_pointer_field_null(1) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_node_id(&self) -> crate::veilid_capnp::typed_key::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 54] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(205, 59, 98, 233, 143, 120, 239, 253), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(2, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 50, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 70, 105, 110, 100), ::capnp::word(78, 111, 100, 101, 81, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 58, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(36, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(48, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(45, 0, 0, 0, 106, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(44, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(72, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(110, 111, 100, 101, 73, 100, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 27, 230, 241, 169, 103, 213, 226), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(99, 97, 112, 97, 98, 105, 108, 105), ::capnp::word(116, 105, 101, 115, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => <::capnp::primitive_list::Owned as ::capnp::introspect::Introspect>::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[1,0]; pub const TYPE_ID: u64 = 0xfdef_788f_e962_3bcd; } } pub mod operation_find_node_a { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_peers(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::veilid_capnp::peer_info::Owned>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_peers(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_peers(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::veilid_capnp::peer_info::Owned>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_peers(&mut self, value: ::capnp::struct_list::Reader<'_,crate::veilid_capnp::peer_info::Owned>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_peers(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::veilid_capnp::peer_info::Owned> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), size) } #[inline] pub fn has_peers(&self) -> bool { !self.builder.is_pointer_field_null(0) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 38] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(137, 112, 199, 64, 251, 242, 76, 168), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 50, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 63, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 70, 105, 110, 100), ::capnp::word(78, 111, 100, 101, 65, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(4, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(36, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(112, 101, 101, 114, 115, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(203, 75, 60, 93, 45, 114, 45, 254), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => <::capnp::struct_list::Owned as ::capnp::introspect::Introspect>::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0]; pub const TYPE_ID: u64 = 0xa84c_f2fb_40c7_7089; } } pub mod operation_route { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_safety_route(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_safety_route(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_operation(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_operation(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_safety_route(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_safety_route(&mut self, value: crate::veilid_capnp::safety_route::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_safety_route(self, ) -> crate::veilid_capnp::safety_route::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_safety_route(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_operation(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_operation(&mut self, value: crate::veilid_capnp::routed_operation::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_operation(self, ) -> crate::veilid_capnp::routed_operation::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_operation(&self) -> bool { !self.builder.is_pointer_field_null(1) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_safety_route(&self) -> crate::veilid_capnp::safety_route::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } pub fn get_operation(&self) -> crate::veilid_capnp::routed_operation::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(1)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 51] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(221, 199, 106, 206, 89, 24, 116, 150), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(2, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 18, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 82, 111, 117, 116), ::capnp::word(101, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 98, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(40, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(52, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(49, 0, 0, 0, 82, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(48, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(60, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(115, 97, 102, 101, 116, 121, 82, 111), ::capnp::word(117, 116, 101, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(89, 93, 203, 7, 77, 115, 84, 245), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(111, 112, 101, 114, 97, 116, 105, 111), ::capnp::word(110, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(221, 233, 57, 184, 53, 133, 203, 203), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[1,0]; pub const TYPE_ID: u64 = 0x9674_1859_ce6a_c7dd; } } pub mod operation_app_call_q { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_message(self) -> ::capnp::Result<::capnp::data::Reader<'a>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_message(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_message(self) -> ::capnp::Result<::capnp::data::Builder<'a>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_message(&mut self, value: ::capnp::data::Reader<'_>) { self.builder.reborrow().get_pointer_field(0).set_data(value); } #[inline] pub fn init_message(self, size: u32) -> ::capnp::data::Builder<'a> { self.builder.get_pointer_field(0).init_data(size) } #[inline] pub fn has_message(&self) -> bool { !self.builder.is_pointer_field_null(0) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 34] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(7, 69, 120, 9, 159, 123, 230, 173), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 42, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 63, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 65, 112, 112, 67), ::capnp::word(97, 108, 108, 81, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(4, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(20, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(109, 101, 115, 115, 97, 103, 101, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0]; pub const TYPE_ID: u64 = 0xade6_7b9f_0978_4507; } } pub mod operation_app_call_a { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_message(self) -> ::capnp::Result<::capnp::data::Reader<'a>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_message(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_message(self) -> ::capnp::Result<::capnp::data::Builder<'a>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_message(&mut self, value: ::capnp::data::Reader<'_>) { self.builder.reborrow().get_pointer_field(0).set_data(value); } #[inline] pub fn init_message(self, size: u32) -> ::capnp::data::Builder<'a> { self.builder.get_pointer_field(0).init_data(size) } #[inline] pub fn has_message(&self) -> bool { !self.builder.is_pointer_field_null(0) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 34] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(184, 20, 242, 133, 172, 151, 199, 247), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 42, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 63, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 65, 112, 112, 67), ::capnp::word(97, 108, 108, 65, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(4, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(20, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(109, 101, 115, 115, 97, 103, 101, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0]; pub const TYPE_ID: u64 = 0xf7c7_97ac_85f2_14b8; } } pub mod operation_app_message { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_message(self) -> ::capnp::Result<::capnp::data::Reader<'a>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_message(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_message(self) -> ::capnp::Result<::capnp::data::Builder<'a>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_message(&mut self, value: ::capnp::data::Reader<'_>) { self.builder.reborrow().get_pointer_field(0).set_data(value); } #[inline] pub fn init_message(self, size: u32) -> ::capnp::data::Builder<'a> { self.builder.get_pointer_field(0).init_data(size) } #[inline] pub fn has_message(&self) -> bool { !self.builder.is_pointer_field_null(0) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 34] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(245, 17, 180, 129, 45, 84, 175, 155), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 58, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 63, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 65, 112, 112, 77), ::capnp::word(101, 115, 115, 97, 103, 101, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(4, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(20, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(109, 101, 115, 115, 97, 103, 101, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0]; pub const TYPE_ID: u64 = 0x9baf_542d_81b4_11f5; } } pub mod subkey_range { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_start(self) -> u32 { self.reader.get_data_field::(0) } #[inline] pub fn get_end(self) -> u32 { self.reader.get_data_field::(1) } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 0 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_start(self) -> u32 { self.builder.get_data_field::(0) } #[inline] pub fn set_start(&mut self, value: u32) { self.builder.set_data_field::(0, value); } #[inline] pub fn get_end(self) -> u32 { self.builder.get_data_field::(1) } #[inline] pub fn set_end(&mut self, value: u32) { self.builder.set_data_field::(1, value); } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 48] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(28, 23, 208, 164, 192, 218, 146, 245), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(0, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 250, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 83, 117, 98, 107, 101), ::capnp::word(121, 82, 97, 110, 103, 101, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(36, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(48, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(45, 0, 0, 0, 34, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(40, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(52, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(115, 116, 97, 114, 116, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(101, 110, 100, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[1,0]; pub const TYPE_ID: u64 = 0xf592_dac0_a4d0_171c; } } pub mod signed_value_data { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_seq(self) -> u32 { self.reader.get_data_field::(0) } #[inline] pub fn get_data(self) -> ::capnp::Result<::capnp::data::Reader<'a>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_data(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_writer(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_writer(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn get_signature(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn has_signature(&self) -> bool { !self.reader.get_pointer_field(2).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 3 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_seq(self) -> u32 { self.builder.get_data_field::(0) } #[inline] pub fn set_seq(&mut self, value: u32) { self.builder.set_data_field::(0, value); } #[inline] pub fn get_data(self) -> ::capnp::Result<::capnp::data::Builder<'a>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_data(&mut self, value: ::capnp::data::Reader<'_>) { self.builder.reborrow().get_pointer_field(0).set_data(value); } #[inline] pub fn init_data(self, size: u32) -> ::capnp::data::Builder<'a> { self.builder.get_pointer_field(0).init_data(size) } #[inline] pub fn has_data(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_writer(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_writer(&mut self, value: crate::veilid_capnp::key256::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_writer(self, ) -> crate::veilid_capnp::key256::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_writer(&self) -> bool { !self.builder.is_pointer_field_null(1) } #[inline] pub fn get_signature(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn set_signature(&mut self, value: crate::veilid_capnp::signature512::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(2), value, false) } #[inline] pub fn init_signature(self, ) -> crate::veilid_capnp::signature512::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(2), 0) } #[inline] pub fn has_signature(&self) -> bool { !self.builder.is_pointer_field_null(2) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_writer(&self) -> crate::veilid_capnp::key256::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(1)) } pub fn get_signature(&self) -> crate::veilid_capnp::signature512::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(2)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 80] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(61, 42, 159, 22, 111, 65, 183, 180), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(3, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 26, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 231, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 83, 105, 103, 110, 101), ::capnp::word(100, 86, 97, 108, 117, 101, 68, 97), ::capnp::word(116, 97, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(97, 0, 0, 0, 34, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(92, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(104, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(101, 0, 0, 0, 42, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(96, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(108, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(105, 0, 0, 0, 58, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(100, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(112, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(3, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(109, 0, 0, 0, 82, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(108, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(120, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(115, 101, 113, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(100, 97, 116, 97, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(119, 114, 105, 116, 101, 114, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 169, 246, 134, 50, 78, 228, 221), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(115, 105, 103, 110, 97, 116, 117, 114), ::capnp::word(101, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(18, 156, 18, 58, 4, 73, 103, 128), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(), 2 => ::introspect(), 3 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[1,0,3,2]; pub const TYPE_ID: u64 = 0xb4b7_416f_169f_2a3d; } } pub mod signed_value_descriptor { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_owner(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_owner(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_schema_data(self) -> ::capnp::Result<::capnp::data::Reader<'a>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_schema_data(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn get_signature(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn has_signature(&self) -> bool { !self.reader.get_pointer_field(2).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 3 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_owner(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_owner(&mut self, value: crate::veilid_capnp::key256::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_owner(self, ) -> crate::veilid_capnp::key256::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_owner(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_schema_data(self) -> ::capnp::Result<::capnp::data::Builder<'a>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_schema_data(&mut self, value: ::capnp::data::Reader<'_>) { self.builder.reborrow().get_pointer_field(1).set_data(value); } #[inline] pub fn init_schema_data(self, size: u32) -> ::capnp::data::Builder<'a> { self.builder.get_pointer_field(1).init_data(size) } #[inline] pub fn has_schema_data(&self) -> bool { !self.builder.is_pointer_field_null(1) } #[inline] pub fn get_signature(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn set_signature(&mut self, value: crate::veilid_capnp::signature512::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(2), value, false) } #[inline] pub fn init_signature(self, ) -> crate::veilid_capnp::signature512::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(2), 0) } #[inline] pub fn has_signature(&self) -> bool { !self.builder.is_pointer_field_null(2) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_owner(&self) -> crate::veilid_capnp::key256::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } pub fn get_signature(&self) -> crate::veilid_capnp::signature512::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(2)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 67] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(231, 176, 225, 249, 211, 28, 145, 231), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(3, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 74, 1, 0, 0), ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(37, 0, 0, 0, 175, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 83, 105, 103, 110, 101), ::capnp::word(100, 86, 97, 108, 117, 101, 68, 101), ::capnp::word(115, 99, 114, 105, 112, 116, 111, 114), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(12, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(69, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(64, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(76, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(73, 0, 0, 0, 90, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(72, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(84, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(81, 0, 0, 0, 82, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(80, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(92, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(111, 119, 110, 101, 114, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 169, 246, 134, 50, 78, 228, 221), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(115, 99, 104, 101, 109, 97, 68, 97), ::capnp::word(116, 97, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(115, 105, 103, 110, 97, 116, 117, 114), ::capnp::word(101, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(18, 156, 18, 58, 4, 73, 103, 128), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(), 2 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0,1,2]; pub const TYPE_ID: u64 = 0xe791_1cd3_f9e1_b0e7; } } pub mod operation_get_value_q { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_key(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_key(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_subkey(self) -> u32 { self.reader.get_data_field::(0) } #[inline] pub fn get_want_descriptor(self) -> bool { self.reader.get_bool_field(32) } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_key(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_key(&mut self, value: crate::veilid_capnp::typed_key::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_key(self, ) -> crate::veilid_capnp::typed_key::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_key(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_subkey(self) -> u32 { self.builder.get_data_field::(0) } #[inline] pub fn set_subkey(&mut self, value: u32) { self.builder.set_data_field::(0, value); } #[inline] pub fn get_want_descriptor(self) -> bool { self.builder.get_bool_field(32) } #[inline] pub fn set_want_descriptor(&mut self, value: bool) { self.builder.set_bool_field(32, value); } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_key(&self) -> crate::veilid_capnp::typed_key::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 65] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(208, 165, 237, 165, 109, 91, 138, 248), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 50, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 175, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 71, 101, 116, 86), ::capnp::word(97, 108, 117, 101, 81, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(12, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(69, 0, 0, 0, 34, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(64, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(76, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(73, 0, 0, 0, 58, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(68, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(80, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 32, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(77, 0, 0, 0, 122, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(76, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(88, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(107, 101, 121, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 27, 230, 241, 169, 103, 213, 226), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(115, 117, 98, 107, 101, 121, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(119, 97, 110, 116, 68, 101, 115, 99), ::capnp::word(114, 105, 112, 116, 111, 114, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0,1,2]; pub const TYPE_ID: u64 = 0xf88a_5b6d_a5ed_a5d0; } } pub mod operation_get_value_a { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_value(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_value(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_peers(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::veilid_capnp::peer_info::Owned>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_peers(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn get_descriptor(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn has_descriptor(&self) -> bool { !self.reader.get_pointer_field(2).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 3 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_value(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_value(&mut self, value: crate::veilid_capnp::signed_value_data::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_value(self, ) -> crate::veilid_capnp::signed_value_data::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_value(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_peers(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::veilid_capnp::peer_info::Owned>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_peers(&mut self, value: ::capnp::struct_list::Reader<'_,crate::veilid_capnp::peer_info::Owned>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_peers(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::veilid_capnp::peer_info::Owned> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), size) } #[inline] pub fn has_peers(&self) -> bool { !self.builder.is_pointer_field_null(1) } #[inline] pub fn get_descriptor(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn set_descriptor(&mut self, value: crate::veilid_capnp::signed_value_descriptor::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(2), value, false) } #[inline] pub fn init_descriptor(self, ) -> crate::veilid_capnp::signed_value_descriptor::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(2), 0) } #[inline] pub fn has_descriptor(&self) -> bool { !self.builder.is_pointer_field_null(2) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_value(&self) -> crate::veilid_capnp::signed_value_data::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } pub fn get_descriptor(&self) -> crate::veilid_capnp::signed_value_descriptor::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(2)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 69] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(159, 36, 224, 242, 70, 187, 150, 216), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(3, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 50, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 175, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 71, 101, 116, 86), ::capnp::word(97, 108, 117, 101, 65, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(12, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(69, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(64, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(76, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(73, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(68, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(96, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(93, 0, 0, 0, 90, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(92, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(104, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(118, 97, 108, 117, 101, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(61, 42, 159, 22, 111, 65, 183, 180), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 101, 101, 114, 115, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(203, 75, 60, 93, 45, 114, 45, 254), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(100, 101, 115, 99, 114, 105, 112, 116), ::capnp::word(111, 114, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(231, 176, 225, 249, 211, 28, 145, 231), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => <::capnp::struct_list::Owned as ::capnp::introspect::Introspect>::introspect(), 2 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[2,1,0]; pub const TYPE_ID: u64 = 0xd896_bb46_f2e0_249f; } } pub mod operation_set_value_q { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_key(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_key(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_subkey(self) -> u32 { self.reader.get_data_field::(0) } #[inline] pub fn get_value(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_value(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn get_descriptor(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn has_descriptor(&self) -> bool { !self.reader.get_pointer_field(2).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 3 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_key(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_key(&mut self, value: crate::veilid_capnp::typed_key::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_key(self, ) -> crate::veilid_capnp::typed_key::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_key(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_subkey(self) -> u32 { self.builder.get_data_field::(0) } #[inline] pub fn set_subkey(&mut self, value: u32) { self.builder.set_data_field::(0, value); } #[inline] pub fn get_value(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_value(&mut self, value: crate::veilid_capnp::signed_value_data::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_value(self, ) -> crate::veilid_capnp::signed_value_data::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_value(&self) -> bool { !self.builder.is_pointer_field_null(1) } #[inline] pub fn get_descriptor(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn set_descriptor(&mut self, value: crate::veilid_capnp::signed_value_descriptor::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(2), value, false) } #[inline] pub fn init_descriptor(self, ) -> crate::veilid_capnp::signed_value_descriptor::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(2), 0) } #[inline] pub fn has_descriptor(&self) -> bool { !self.builder.is_pointer_field_null(2) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_key(&self) -> crate::veilid_capnp::typed_key::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } pub fn get_value(&self) -> crate::veilid_capnp::signed_value_data::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(1)) } pub fn get_descriptor(&self) -> crate::veilid_capnp::signed_value_descriptor::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(2)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 80] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(197, 219, 139, 255, 145, 97, 192, 186), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(3, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 50, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 231, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 83, 101, 116, 86), ::capnp::word(97, 108, 117, 101, 81, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(97, 0, 0, 0, 34, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(92, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(104, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(101, 0, 0, 0, 58, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(96, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(108, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(105, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(100, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(112, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(3, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(109, 0, 0, 0, 90, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(108, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(120, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(107, 101, 121, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 27, 230, 241, 169, 103, 213, 226), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(115, 117, 98, 107, 101, 121, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(118, 97, 108, 117, 101, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(61, 42, 159, 22, 111, 65, 183, 180), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(100, 101, 115, 99, 114, 105, 112, 116), ::capnp::word(111, 114, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(231, 176, 225, 249, 211, 28, 145, 231), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => ::introspect(), 3 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[3,0,1,2]; pub const TYPE_ID: u64 = 0xbac0_6191_ff8b_dbc5; } } pub mod operation_set_value_a { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_set(self) -> bool { self.reader.get_bool_field(0) } #[inline] pub fn get_value(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_value(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_peers(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::veilid_capnp::peer_info::Owned>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_peers(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_set(self) -> bool { self.builder.get_bool_field(0) } #[inline] pub fn set_set(&mut self, value: bool) { self.builder.set_bool_field(0, value); } #[inline] pub fn get_value(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_value(&mut self, value: crate::veilid_capnp::signed_value_data::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_value(self, ) -> crate::veilid_capnp::signed_value_data::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_value(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_peers(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::veilid_capnp::peer_info::Owned>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_peers(&mut self, value: ::capnp::struct_list::Reader<'_,crate::veilid_capnp::peer_info::Owned>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_peers(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::veilid_capnp::peer_info::Owned> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), size) } #[inline] pub fn has_peers(&self) -> bool { !self.builder.is_pointer_field_null(1) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_value(&self) -> crate::veilid_capnp::signed_value_data::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 68] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(226, 91, 201, 45, 115, 208, 120, 147), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(2, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 50, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 175, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 83, 101, 116, 86), ::capnp::word(97, 108, 117, 101, 65, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(12, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(69, 0, 0, 0, 34, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(64, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(76, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(73, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(68, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(80, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(77, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(72, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(100, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(115, 101, 116, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(118, 97, 108, 117, 101, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(61, 42, 159, 22, 111, 65, 183, 180), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 101, 101, 114, 115, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(203, 75, 60, 93, 45, 114, 45, 254), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => <::capnp::struct_list::Owned as ::capnp::introspect::Introspect>::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[2,0,1]; pub const TYPE_ID: u64 = 0x9378_d073_2dc9_5be2; } } pub mod operation_watch_value_q { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_key(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_key(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_subkeys(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::veilid_capnp::subkey_range::Owned>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_subkeys(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn get_expiration(self) -> u64 { self.reader.get_data_field::(0) } #[inline] pub fn get_count(self) -> u32 { self.reader.get_data_field::(2) } #[inline] pub fn get_watch_id(self) -> u64 { self.reader.get_data_field::(2) } #[inline] pub fn get_watcher(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn has_watcher(&self) -> bool { !self.reader.get_pointer_field(2).is_null() } #[inline] pub fn get_signature(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(3), ::core::option::Option::None) } #[inline] pub fn has_signature(&self) -> bool { !self.reader.get_pointer_field(3).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 3, pointers: 4 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_key(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_key(&mut self, value: crate::veilid_capnp::typed_key::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_key(self, ) -> crate::veilid_capnp::typed_key::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_key(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_subkeys(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::veilid_capnp::subkey_range::Owned>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_subkeys(&mut self, value: ::capnp::struct_list::Reader<'_,crate::veilid_capnp::subkey_range::Owned>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_subkeys(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::veilid_capnp::subkey_range::Owned> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), size) } #[inline] pub fn has_subkeys(&self) -> bool { !self.builder.is_pointer_field_null(1) } #[inline] pub fn get_expiration(self) -> u64 { self.builder.get_data_field::(0) } #[inline] pub fn set_expiration(&mut self, value: u64) { self.builder.set_data_field::(0, value); } #[inline] pub fn get_count(self) -> u32 { self.builder.get_data_field::(2) } #[inline] pub fn set_count(&mut self, value: u32) { self.builder.set_data_field::(2, value); } #[inline] pub fn get_watch_id(self) -> u64 { self.builder.get_data_field::(2) } #[inline] pub fn set_watch_id(&mut self, value: u64) { self.builder.set_data_field::(2, value); } #[inline] pub fn get_watcher(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn set_watcher(&mut self, value: crate::veilid_capnp::key256::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(2), value, false) } #[inline] pub fn init_watcher(self, ) -> crate::veilid_capnp::key256::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(2), 0) } #[inline] pub fn has_watcher(&self) -> bool { !self.builder.is_pointer_field_null(2) } #[inline] pub fn get_signature(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(3), ::core::option::Option::None) } #[inline] pub fn set_signature(&mut self, value: crate::veilid_capnp::signature512::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(3), value, false) } #[inline] pub fn init_signature(self, ) -> crate::veilid_capnp::signature512::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(3), 0) } #[inline] pub fn has_signature(&self) -> bool { !self.builder.is_pointer_field_null(3) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_key(&self) -> crate::veilid_capnp::typed_key::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } pub fn get_watcher(&self) -> crate::veilid_capnp::key256::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(2)) } pub fn get_signature(&self) -> crate::veilid_capnp::signature512::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(3)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 130] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(40, 178, 185, 71, 197, 166, 165, 249), ::capnp::word(19, 0, 0, 0, 1, 0, 3, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(4, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 66, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 143, 1, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 87, 97, 116, 99), ::capnp::word(104, 86, 97, 108, 117, 101, 81, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(28, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(181, 0, 0, 0, 34, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(176, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(188, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(185, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(180, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(208, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(205, 0, 0, 0, 90, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(204, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(216, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(3, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(213, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(208, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(220, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(4, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 4, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(217, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(212, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(224, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(5, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 5, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(221, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(216, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(228, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(6, 0, 0, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 6, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(225, 0, 0, 0, 82, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(224, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(236, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(107, 101, 121, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 27, 230, 241, 169, 103, 213, 226), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(115, 117, 98, 107, 101, 121, 115, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(28, 23, 208, 164, 192, 218, 146, 245), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(101, 120, 112, 105, 114, 97, 116, 105), ::capnp::word(111, 110, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(99, 111, 117, 110, 116, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(119, 97, 116, 99, 104, 73, 100, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(119, 97, 116, 99, 104, 101, 114, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 169, 246, 134, 50, 78, 228, 221), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(115, 105, 103, 110, 97, 116, 117, 114), ::capnp::word(101, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(18, 156, 18, 58, 4, 73, 103, 128), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => <::capnp::struct_list::Owned as ::capnp::introspect::Introspect>::introspect(), 2 => ::introspect(), 3 => ::introspect(), 4 => ::introspect(), 5 => ::introspect(), 6 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3,4,5,6]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[3,2,0,6,1,4,5]; pub const TYPE_ID: u64 = 0xf9a5_a6c5_47b9_b228; } } pub mod operation_watch_value_a { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_accepted(self) -> bool { self.reader.get_bool_field(0) } #[inline] pub fn get_expiration(self) -> u64 { self.reader.get_data_field::(1) } #[inline] pub fn get_peers(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::veilid_capnp::peer_info::Owned>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_peers(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_watch_id(self) -> u64 { self.reader.get_data_field::(2) } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 3, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_accepted(self) -> bool { self.builder.get_bool_field(0) } #[inline] pub fn set_accepted(&mut self, value: bool) { self.builder.set_bool_field(0, value); } #[inline] pub fn get_expiration(self) -> u64 { self.builder.get_data_field::(1) } #[inline] pub fn set_expiration(&mut self, value: u64) { self.builder.set_data_field::(1, value); } #[inline] pub fn get_peers(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::veilid_capnp::peer_info::Owned>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_peers(&mut self, value: ::capnp::struct_list::Reader<'_,crate::veilid_capnp::peer_info::Owned>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_peers(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::veilid_capnp::peer_info::Owned> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), size) } #[inline] pub fn has_peers(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_watch_id(self) -> u64 { self.builder.get_data_field::(2) } #[inline] pub fn set_watch_id(&mut self, value: u64) { self.builder.set_data_field::(2, value); } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 85] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(147, 168, 75, 6, 183, 202, 38, 167), ::capnp::word(19, 0, 0, 0, 1, 0, 3, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 66, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 231, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 87, 97, 116, 99), ::capnp::word(104, 86, 97, 108, 117, 101, 65, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(97, 0, 0, 0, 74, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(96, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(108, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(105, 0, 0, 0, 90, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(104, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(116, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(113, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(108, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(136, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(3, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(133, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(128, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(140, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(97, 99, 99, 101, 112, 116, 101, 100), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(101, 120, 112, 105, 114, 97, 116, 105), ::capnp::word(111, 110, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 101, 101, 114, 115, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(203, 75, 60, 93, 45, 114, 45, 254), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(119, 97, 116, 99, 104, 73, 100, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => <::capnp::struct_list::Owned as ::capnp::introspect::Introspect>::introspect(), 3 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0,1,2,3]; pub const TYPE_ID: u64 = 0xa726_cab7_064b_a893; } } pub mod operation_inspect_value_q { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_key(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_key(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_subkeys(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::veilid_capnp::subkey_range::Owned>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_subkeys(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn get_want_descriptor(self) -> bool { self.reader.get_bool_field(0) } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_key(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_key(&mut self, value: crate::veilid_capnp::typed_key::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_key(self, ) -> crate::veilid_capnp::typed_key::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_key(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_subkeys(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::veilid_capnp::subkey_range::Owned>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_subkeys(&mut self, value: ::capnp::struct_list::Reader<'_,crate::veilid_capnp::subkey_range::Owned>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_subkeys(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::veilid_capnp::subkey_range::Owned> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), size) } #[inline] pub fn has_subkeys(&self) -> bool { !self.builder.is_pointer_field_null(1) } #[inline] pub fn get_want_descriptor(self) -> bool { self.builder.get_bool_field(0) } #[inline] pub fn set_want_descriptor(&mut self, value: bool) { self.builder.set_bool_field(0, value); } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_key(&self) -> crate::veilid_capnp::typed_key::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 70] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(90, 245, 22, 253, 210, 18, 247, 222), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(2, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 82, 1, 0, 0), ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(37, 0, 0, 0, 175, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 73, 110, 115, 112), ::capnp::word(101, 99, 116, 86, 97, 108, 117, 101), ::capnp::word(81, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(12, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(69, 0, 0, 0, 34, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(64, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(76, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(73, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(68, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(96, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(93, 0, 0, 0, 122, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(92, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(104, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(107, 101, 121, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 27, 230, 241, 169, 103, 213, 226), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(115, 117, 98, 107, 101, 121, 115, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(28, 23, 208, 164, 192, 218, 146, 245), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(119, 97, 110, 116, 68, 101, 115, 99), ::capnp::word(114, 105, 112, 116, 111, 114, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => <::capnp::struct_list::Owned as ::capnp::introspect::Introspect>::introspect(), 2 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0,1,2]; pub const TYPE_ID: u64 = 0xdef7_12d2_fd16_f55a; } } pub mod operation_inspect_value_a { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_seqs(self) -> ::capnp::Result<::capnp::primitive_list::Reader<'a,u32>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_seqs(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_peers(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::veilid_capnp::peer_info::Owned>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_peers(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn get_descriptor(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn has_descriptor(&self) -> bool { !self.reader.get_pointer_field(2).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 3 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_seqs(self) -> ::capnp::Result<::capnp::primitive_list::Builder<'a,u32>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_seqs(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::primitive_list::Owned>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_seqs(self, size: u32) -> ::capnp::primitive_list::Builder<'a,u32> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), size) } #[inline] pub fn has_seqs(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_peers(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::veilid_capnp::peer_info::Owned>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_peers(&mut self, value: ::capnp::struct_list::Reader<'_,crate::veilid_capnp::peer_info::Owned>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_peers(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::veilid_capnp::peer_info::Owned> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), size) } #[inline] pub fn has_peers(&self) -> bool { !self.builder.is_pointer_field_null(1) } #[inline] pub fn get_descriptor(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn set_descriptor(&mut self, value: crate::veilid_capnp::signed_value_descriptor::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(2), value, false) } #[inline] pub fn init_descriptor(self, ) -> crate::veilid_capnp::signed_value_descriptor::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(2), 0) } #[inline] pub fn has_descriptor(&self) -> bool { !self.builder.is_pointer_field_null(2) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_descriptor(&self) -> crate::veilid_capnp::signed_value_descriptor::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(2)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 74] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(2, 225, 14, 150, 175, 127, 181, 184), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(3, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 82, 1, 0, 0), ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(37, 0, 0, 0, 175, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 73, 110, 115, 112), ::capnp::word(101, 99, 116, 86, 97, 108, 117, 101), ::capnp::word(65, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(12, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(69, 0, 0, 0, 42, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(64, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(92, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(89, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(84, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(112, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(109, 0, 0, 0, 90, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(108, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(120, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(115, 101, 113, 115, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 101, 101, 114, 115, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(203, 75, 60, 93, 45, 114, 45, 254), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(100, 101, 115, 99, 114, 105, 112, 116), ::capnp::word(111, 114, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(231, 176, 225, 249, 211, 28, 145, 231), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => <::capnp::primitive_list::Owned as ::capnp::introspect::Introspect>::introspect(), 1 => <::capnp::struct_list::Owned as ::capnp::introspect::Introspect>::introspect(), 2 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[2,1,0]; pub const TYPE_ID: u64 = 0xb8b5_7faf_960e_e102; } } pub mod operation_value_changed { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_key(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_key(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_subkeys(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::veilid_capnp::subkey_range::Owned>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_subkeys(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn get_count(self) -> u32 { self.reader.get_data_field::(0) } #[inline] pub fn get_watch_id(self) -> u64 { self.reader.get_data_field::(1) } #[inline] pub fn get_value(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn has_value(&self) -> bool { !self.reader.get_pointer_field(2).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 2, pointers: 3 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_key(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_key(&mut self, value: crate::veilid_capnp::typed_key::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_key(self, ) -> crate::veilid_capnp::typed_key::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_key(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_subkeys(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::veilid_capnp::subkey_range::Owned>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_subkeys(&mut self, value: ::capnp::struct_list::Reader<'_,crate::veilid_capnp::subkey_range::Owned>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_subkeys(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::veilid_capnp::subkey_range::Owned> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), size) } #[inline] pub fn has_subkeys(&self) -> bool { !self.builder.is_pointer_field_null(1) } #[inline] pub fn get_count(self) -> u32 { self.builder.get_data_field::(0) } #[inline] pub fn set_count(&mut self, value: u32) { self.builder.set_data_field::(0, value); } #[inline] pub fn get_watch_id(self) -> u64 { self.builder.get_data_field::(1) } #[inline] pub fn set_watch_id(&mut self, value: u64) { self.builder.set_data_field::(1, value); } #[inline] pub fn get_value(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn set_value(&mut self, value: crate::veilid_capnp::signed_value_data::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(2), value, false) } #[inline] pub fn init_value(self, ) -> crate::veilid_capnp::signed_value_data::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(2), 0) } #[inline] pub fn has_value(&self) -> bool { !self.builder.is_pointer_field_null(2) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_key(&self) -> crate::veilid_capnp::typed_key::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } pub fn get_value(&self) -> crate::veilid_capnp::signed_value_data::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(2)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 99] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(246, 27, 204, 216, 189, 158, 197, 209), ::capnp::word(19, 0, 0, 0, 1, 0, 2, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(3, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 74, 1, 0, 0), ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(37, 0, 0, 0, 31, 1, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 86, 97, 108, 117), ::capnp::word(101, 67, 104, 97, 110, 103, 101, 100), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(20, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(125, 0, 0, 0, 34, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(120, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(132, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(129, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(124, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(152, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(149, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(144, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(156, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(3, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(153, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(148, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(160, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(4, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 4, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(157, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(152, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(164, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(107, 101, 121, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 27, 230, 241, 169, 103, 213, 226), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(115, 117, 98, 107, 101, 121, 115, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(28, 23, 208, 164, 192, 218, 146, 245), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(99, 111, 117, 110, 116, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(119, 97, 116, 99, 104, 73, 100, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(118, 97, 108, 117, 101, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(61, 42, 159, 22, 111, 65, 183, 180), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => <::capnp::struct_list::Owned as ::capnp::introspect::Introspect>::introspect(), 2 => ::introspect(), 3 => ::introspect(), 4 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3,4]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[2,0,1,4,3]; pub const TYPE_ID: u64 = 0xd1c5_9ebd_d8cc_1bf6; } } pub mod operation_supply_block_q { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_block_id(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_block_id(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_block_id(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_block_id(&mut self, value: crate::veilid_capnp::typed_key::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_block_id(self, ) -> crate::veilid_capnp::typed_key::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_block_id(&self) -> bool { !self.builder.is_pointer_field_null(0) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_block_id(&self) -> crate::veilid_capnp::typed_key::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 35] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(113, 153, 116, 45, 84, 76, 191, 173), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 74, 1, 0, 0), ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(37, 0, 0, 0, 63, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 83, 117, 112, 112), ::capnp::word(108, 121, 66, 108, 111, 99, 107, 81), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(4, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(20, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(98, 108, 111, 99, 107, 73, 100, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 27, 230, 241, 169, 103, 213, 226), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0]; pub const TYPE_ID: u64 = 0xadbf_4c54_2d74_9971; } } pub mod operation_supply_block_a { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_expiration(self) -> u64 { self.reader.get_data_field::(0) } #[inline] pub fn get_peers(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::veilid_capnp::peer_info::Owned>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_peers(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_expiration(self) -> u64 { self.builder.get_data_field::(0) } #[inline] pub fn set_expiration(&mut self, value: u64) { self.builder.set_data_field::(0, value); } #[inline] pub fn get_peers(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::veilid_capnp::peer_info::Owned>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_peers(&mut self, value: ::capnp::struct_list::Reader<'_,crate::veilid_capnp::peer_info::Owned>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_peers(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::veilid_capnp::peer_info::Owned> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), size) } #[inline] pub fn has_peers(&self) -> bool { !self.builder.is_pointer_field_null(0) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 55] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(215, 192, 181, 131, 46, 130, 3, 240), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 74, 1, 0, 0), ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(37, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 83, 117, 112, 112), ::capnp::word(108, 121, 66, 108, 111, 99, 107, 65), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 90, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(40, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(52, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(49, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(44, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(72, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(101, 120, 112, 105, 114, 97, 116, 105), ::capnp::word(111, 110, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 101, 101, 114, 115, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(203, 75, 60, 93, 45, 114, 45, 254), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => <::capnp::struct_list::Owned as ::capnp::introspect::Introspect>::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0,1]; pub const TYPE_ID: u64 = 0xf003_822e_83b5_c0d7; } } pub mod operation_find_block_q { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_block_id(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_block_id(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_block_id(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_block_id(&mut self, value: crate::veilid_capnp::typed_key::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_block_id(self, ) -> crate::veilid_capnp::typed_key::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_block_id(&self) -> bool { !self.builder.is_pointer_field_null(0) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_block_id(&self) -> crate::veilid_capnp::typed_key::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 34] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(86, 113, 76, 0, 255, 83, 67, 175), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 58, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 63, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 70, 105, 110, 100), ::capnp::word(66, 108, 111, 99, 107, 81, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(4, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(20, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(98, 108, 111, 99, 107, 73, 100, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 27, 230, 241, 169, 103, 213, 226), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0]; pub const TYPE_ID: u64 = 0xaf43_53ff_004c_7156; } } pub mod operation_find_block_a { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_data(self) -> ::capnp::Result<::capnp::data::Reader<'a>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_data(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_suppliers(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::veilid_capnp::peer_info::Owned>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_suppliers(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn get_peers(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::veilid_capnp::peer_info::Owned>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn has_peers(&self) -> bool { !self.reader.get_pointer_field(2).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 3 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_data(self) -> ::capnp::Result<::capnp::data::Builder<'a>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_data(&mut self, value: ::capnp::data::Reader<'_>) { self.builder.reborrow().get_pointer_field(0).set_data(value); } #[inline] pub fn init_data(self, size: u32) -> ::capnp::data::Builder<'a> { self.builder.get_pointer_field(0).init_data(size) } #[inline] pub fn has_data(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_suppliers(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::veilid_capnp::peer_info::Owned>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_suppliers(&mut self, value: ::capnp::struct_list::Reader<'_,crate::veilid_capnp::peer_info::Owned>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_suppliers(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::veilid_capnp::peer_info::Owned> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), size) } #[inline] pub fn has_suppliers(&self) -> bool { !self.builder.is_pointer_field_null(1) } #[inline] pub fn get_peers(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::veilid_capnp::peer_info::Owned>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn set_peers(&mut self, value: ::capnp::struct_list::Reader<'_,crate::veilid_capnp::peer_info::Owned>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(2), value, false) } #[inline] pub fn init_peers(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::veilid_capnp::peer_info::Owned> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(2), size) } #[inline] pub fn has_peers(&self) -> bool { !self.builder.is_pointer_field_null(2) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 73] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(93, 70, 21, 73, 188, 85, 20, 197), ::capnp::word(19, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(3, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 58, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 175, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 70, 105, 110, 100), ::capnp::word(66, 108, 111, 99, 107, 65, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(12, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(69, 0, 0, 0, 42, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(64, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(76, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(73, 0, 0, 0, 82, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(72, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(100, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(97, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(92, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(120, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(100, 97, 116, 97, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(115, 117, 112, 112, 108, 105, 101, 114), ::capnp::word(115, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(203, 75, 60, 93, 45, 114, 45, 254), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 101, 101, 114, 115, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(203, 75, 60, 93, 45, 114, 45, 254), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(), 1 => <::capnp::struct_list::Owned as ::capnp::introspect::Introspect>::introspect(), 2 => <::capnp::struct_list::Owned as ::capnp::introspect::Introspect>::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0,2,1]; pub const TYPE_ID: u64 = 0xc514_55bc_4915_465d; } } pub mod operation_signal { pub use self::Which::{HolePunch,ReverseConnect}; #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn has_hole_punch(&self) -> bool { if self.reader.get_data_field::(0) != 0 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_reverse_connect(&self) -> bool { if self.reader.get_data_field::(0) != 1 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.reader.get_data_field::(0) { 0 => { ::core::result::Result::Ok(HolePunch( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(ReverseConnect( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn set_hole_punch(&mut self, value: crate::veilid_capnp::signal_info_hole_punch::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 0); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_hole_punch(self, ) -> crate::veilid_capnp::signal_info_hole_punch::Builder<'a> { self.builder.set_data_field::(0, 0); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_hole_punch(&self) -> bool { if self.builder.get_data_field::(0) != 0 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_reverse_connect(&mut self, value: crate::veilid_capnp::signal_info_reverse_connect::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 1); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_reverse_connect(self, ) -> crate::veilid_capnp::signal_info_reverse_connect::Builder<'a> { self.builder.set_data_field::(0, 1); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_reverse_connect(&self) -> bool { if self.builder.get_data_field::(0) != 1 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.builder.get_data_field::(0) { 0 => { ::core::result::Result::Ok(HolePunch( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(ReverseConnect( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 51] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(73, 126, 32, 93, 42, 79, 249, 212), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 2, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 26, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 83, 105, 103, 110), ::capnp::word(97, 108, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 255, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 82, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(40, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(52, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 254, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(49, 0, 0, 0, 122, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(48, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(60, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(104, 111, 108, 101, 80, 117, 110, 99), ::capnp::word(104, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(154, 12, 137, 97, 104, 171, 185, 238), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(114, 101, 118, 101, 114, 115, 101, 67), ::capnp::word(111, 110, 110, 101, 99, 116, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(19, 224, 70, 13, 189, 211, 235, 217), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[0,1]; pub static MEMBERS_BY_NAME : &[u16] = &[0,1]; pub const TYPE_ID: u64 = 0xd4f9_4f2a_5d20_7e49; } pub enum Which { HolePunch(A0), ReverseConnect(A1), } pub type WhichReader<'a,> = Which<::capnp::Result>,::capnp::Result>>; pub type WhichBuilder<'a,> = Which<::capnp::Result>,::capnp::Result>>; } #[repr(u16)] #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub enum TunnelEndpointMode { Raw = 0, Turn = 1, } impl ::capnp::introspect::Introspect for TunnelEndpointMode { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Enum(::capnp::introspect::RawEnumSchema { encoded_node: &tunnel_endpoint_mode::ENCODED_NODE, annotation_types: tunnel_endpoint_mode::get_annotation_types }).into() } } impl <'a> ::core::convert::From for ::capnp::dynamic_value::Reader<'a> { fn from(e: TunnelEndpointMode) -> Self { ::capnp::dynamic_value::Enum::new(e.into(), ::capnp::introspect::RawEnumSchema { encoded_node: &tunnel_endpoint_mode::ENCODED_NODE, annotation_types: tunnel_endpoint_mode::get_annotation_types }.into()).into() } } impl ::core::convert::TryFrom for TunnelEndpointMode { type Error = ::capnp::NotInSchema; fn try_from(value: u16) -> ::core::result::Result>::Error> { match value { 0 => ::core::result::Result::Ok(Self::Raw), 1 => ::core::result::Result::Ok(Self::Turn), n => ::core::result::Result::Err(::capnp::NotInSchema(n)), } } } impl From for u16 { #[inline] fn from(x: TunnelEndpointMode) -> u16 { x as u16 } } impl ::capnp::traits::HasTypeId for TunnelEndpointMode { const TYPE_ID: u64 = 0xef06_f4c2_9beb_7458u64; } mod tunnel_endpoint_mode { pub static ENCODED_NODE: [::capnp::Word; 27] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(88, 116, 235, 155, 194, 244, 6, 239), ::capnp::word(19, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 50, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 55, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 84, 117, 110, 110, 101), ::capnp::word(108, 69, 110, 100, 112, 111, 105, 110), ::capnp::word(116, 77, 111, 100, 101, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 1, 0, 2, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(17, 0, 0, 0, 34, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 42, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(114, 97, 119, 0, 0, 0, 0, 0), ::capnp::word(116, 117, 114, 110, 0, 0, 0, 0), ]; pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } } #[repr(u16)] #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub enum TunnelError { BadId = 0, NoEndpoint = 1, RejectedMode = 2, NoCapacity = 3, } impl ::capnp::introspect::Introspect for TunnelError { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Enum(::capnp::introspect::RawEnumSchema { encoded_node: &tunnel_error::ENCODED_NODE, annotation_types: tunnel_error::get_annotation_types }).into() } } impl <'a> ::core::convert::From for ::capnp::dynamic_value::Reader<'a> { fn from(e: TunnelError) -> Self { ::capnp::dynamic_value::Enum::new(e.into(), ::capnp::introspect::RawEnumSchema { encoded_node: &tunnel_error::ENCODED_NODE, annotation_types: tunnel_error::get_annotation_types }.into()).into() } } impl ::core::convert::TryFrom for TunnelError { type Error = ::capnp::NotInSchema; fn try_from(value: u16) -> ::core::result::Result>::Error> { match value { 0 => ::core::result::Result::Ok(Self::BadId), 1 => ::core::result::Result::Ok(Self::NoEndpoint), 2 => ::core::result::Result::Ok(Self::RejectedMode), 3 => ::core::result::Result::Ok(Self::NoCapacity), n => ::core::result::Result::Err(::capnp::NotInSchema(n)), } } } impl From for u16 { #[inline] fn from(x: TunnelError) -> u16 { x as u16 } } impl ::capnp::traits::HasTypeId for TunnelError { const TYPE_ID: u64 = 0xb82c_6bfb_1ec3_8c7cu64; } mod tunnel_error { pub static ENCODED_NODE: [::capnp::Word; 37] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(124, 140, 195, 30, 251, 107, 44, 184), ::capnp::word(19, 0, 0, 0, 2, 0, 0, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 250, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 103, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 84, 117, 110, 110, 101), ::capnp::word(108, 69, 114, 114, 111, 114, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 1, 0, 2, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 90, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(2, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 106, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(3, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(25, 0, 0, 0, 90, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(98, 97, 100, 73, 100, 0, 0, 0), ::capnp::word(110, 111, 69, 110, 100, 112, 111, 105), ::capnp::word(110, 116, 0, 0, 0, 0, 0, 0), ::capnp::word(114, 101, 106, 101, 99, 116, 101, 100), ::capnp::word(77, 111, 100, 101, 0, 0, 0, 0), ::capnp::word(110, 111, 67, 97, 112, 97, 99, 105), ::capnp::word(116, 121, 0, 0, 0, 0, 0, 0), ]; pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } } pub mod tunnel_endpoint { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_mode(self) -> ::core::result::Result { ::core::convert::TryInto::try_into(self.reader.get_data_field::(0)) } #[inline] pub fn get_description(self) -> ::capnp::Result<::capnp::text::Reader<'a>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_description(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_mode(self) -> ::core::result::Result { ::core::convert::TryInto::try_into(self.builder.get_data_field::(0)) } #[inline] pub fn set_mode(&mut self, value: crate::veilid_capnp::TunnelEndpointMode) { self.builder.set_data_field::(0, value as u16); } #[inline] pub fn get_description(self) -> ::capnp::Result<::capnp::text::Builder<'a>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_description(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text::Owned>) { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false).unwrap() } #[inline] pub fn init_description(self, size: u32) -> ::capnp::text::Builder<'a> { self.builder.get_pointer_field(0).init_text(size) } #[inline] pub fn has_description(&self) -> bool { !self.builder.is_pointer_field_null(0) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 50] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(125, 51, 204, 131, 169, 42, 96, 194), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 18, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 84, 117, 110, 110, 101), ::capnp::word(108, 69, 110, 100, 112, 111, 105, 110), ::capnp::word(116, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 42, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(36, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(48, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(45, 0, 0, 0, 98, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(44, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(56, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(109, 111, 100, 101, 0, 0, 0, 0), ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(88, 116, 235, 155, 194, 244, 6, 239), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(100, 101, 115, 99, 114, 105, 112, 116), ::capnp::word(105, 111, 110, 0, 0, 0, 0, 0), ::capnp::word(12, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(12, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[1,0]; pub const TYPE_ID: u64 = 0xc260_2aa9_83cc_337d; } } pub mod full_tunnel { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_id(self) -> u64 { self.reader.get_data_field::(0) } #[inline] pub fn get_timeout(self) -> u64 { self.reader.get_data_field::(1) } #[inline] pub fn get_local(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_local(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_remote(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_remote(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 2, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_id(self) -> u64 { self.builder.get_data_field::(0) } #[inline] pub fn set_id(&mut self, value: u64) { self.builder.set_data_field::(0, value); } #[inline] pub fn get_timeout(self) -> u64 { self.builder.get_data_field::(1) } #[inline] pub fn set_timeout(&mut self, value: u64) { self.builder.set_data_field::(1, value); } #[inline] pub fn get_local(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_local(&mut self, value: crate::veilid_capnp::tunnel_endpoint::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_local(self, ) -> crate::veilid_capnp::tunnel_endpoint::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_local(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_remote(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_remote(&mut self, value: crate::veilid_capnp::tunnel_endpoint::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_remote(self, ) -> crate::veilid_capnp::tunnel_endpoint::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_remote(&self) -> bool { !self.builder.is_pointer_field_null(1) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_local(&self) -> crate::veilid_capnp::tunnel_endpoint::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } pub fn get_remote(&self) -> crate::veilid_capnp::tunnel_endpoint::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(1)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 78] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(99, 63, 55, 117, 220, 195, 33, 152), ::capnp::word(19, 0, 0, 0, 1, 0, 2, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(2, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 242, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 231, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 70, 117, 108, 108, 84), ::capnp::word(117, 110, 110, 101, 108, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(97, 0, 0, 0, 26, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(92, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(104, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(101, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(96, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(108, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(105, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(100, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(112, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(3, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(109, 0, 0, 0, 58, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(104, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(116, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(105, 100, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(116, 105, 109, 101, 111, 117, 116, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(108, 111, 99, 97, 108, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(125, 51, 204, 131, 169, 42, 96, 194), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(114, 101, 109, 111, 116, 101, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(125, 51, 204, 131, 169, 42, 96, 194), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => ::introspect(), 3 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0,2,3,1]; pub const TYPE_ID: u64 = 0x9821_c3dc_7537_3f63; } } pub mod partial_tunnel { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_id(self) -> u64 { self.reader.get_data_field::(0) } #[inline] pub fn get_timeout(self) -> u64 { self.reader.get_data_field::(1) } #[inline] pub fn get_local(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_local(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 2, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_id(self) -> u64 { self.builder.get_data_field::(0) } #[inline] pub fn set_id(&mut self, value: u64) { self.builder.set_data_field::(0, value); } #[inline] pub fn get_timeout(self) -> u64 { self.builder.get_data_field::(1) } #[inline] pub fn set_timeout(&mut self, value: u64) { self.builder.set_data_field::(1, value); } #[inline] pub fn get_local(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_local(&mut self, value: crate::veilid_capnp::tunnel_endpoint::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_local(self, ) -> crate::veilid_capnp::tunnel_endpoint::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_local(&self) -> bool { !self.builder.is_pointer_field_null(0) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_local(&self) -> crate::veilid_capnp::tunnel_endpoint::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 64] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(200, 47, 190, 2, 188, 126, 122, 130), ::capnp::word(19, 0, 0, 0, 1, 0, 2, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 10, 1, 0, 0), ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 175, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 80, 97, 114, 116, 105), ::capnp::word(97, 108, 84, 117, 110, 110, 101, 108), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(12, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(69, 0, 0, 0, 26, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(64, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(76, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(73, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(68, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(80, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(77, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(72, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(84, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(105, 100, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(116, 105, 109, 101, 111, 117, 116, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(108, 111, 99, 97, 108, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(125, 51, 204, 131, 169, 42, 96, 194), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0,2,1]; pub const TYPE_ID: u64 = 0x827a_7ebc_02be_2fc8; } } pub mod operation_start_tunnel_q { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_id(self) -> u64 { self.reader.get_data_field::(0) } #[inline] pub fn get_local_mode(self) -> ::core::result::Result { ::core::convert::TryInto::try_into(self.reader.get_data_field::(4)) } #[inline] pub fn get_depth(self) -> u8 { self.reader.get_data_field::(10) } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 2, pointers: 0 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_id(self) -> u64 { self.builder.get_data_field::(0) } #[inline] pub fn set_id(&mut self, value: u64) { self.builder.set_data_field::(0, value); } #[inline] pub fn get_local_mode(self) -> ::core::result::Result { ::core::convert::TryInto::try_into(self.builder.get_data_field::(4)) } #[inline] pub fn set_local_mode(&mut self, value: crate::veilid_capnp::TunnelEndpointMode) { self.builder.set_data_field::(4, value as u16); } #[inline] pub fn get_depth(self) -> u8 { self.builder.get_data_field::(10) } #[inline] pub fn set_depth(&mut self, value: u8) { self.builder.set_data_field::(10, value); } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 66] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(175, 135, 65, 228, 252, 154, 196, 169), ::capnp::word(19, 0, 0, 0, 1, 0, 2, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(0, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 74, 1, 0, 0), ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(37, 0, 0, 0, 175, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 83, 116, 97, 114), ::capnp::word(116, 84, 117, 110, 110, 101, 108, 81), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(12, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(69, 0, 0, 0, 26, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(64, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(76, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 4, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(73, 0, 0, 0, 82, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(72, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(84, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 10, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(81, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(76, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(88, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(105, 100, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(108, 111, 99, 97, 108, 77, 111, 100), ::capnp::word(101, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(88, 116, 235, 155, 194, 244, 6, 239), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(100, 101, 112, 116, 104, 0, 0, 0), ::capnp::word(6, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(6, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[2,0,1]; pub const TYPE_ID: u64 = 0xa9c4_9afc_e441_87af; } } pub mod operation_start_tunnel_a { pub use self::Which::{Partial,Error}; #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn has_partial(&self) -> bool { if self.reader.get_data_field::(0) != 0 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.reader.get_data_field::(0) { 0 => { ::core::result::Result::Ok(Partial( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(Error( ::core::convert::TryInto::try_into(self.reader.get_data_field::(1)) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn set_partial(&mut self, value: crate::veilid_capnp::partial_tunnel::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 0); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_partial(self, ) -> crate::veilid_capnp::partial_tunnel::Builder<'a> { self.builder.set_data_field::(0, 0); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_partial(&self) -> bool { if self.builder.get_data_field::(0) != 0 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_error(&mut self, value: crate::veilid_capnp::TunnelError) { self.builder.set_data_field::(0, 1); self.builder.set_data_field::(1, value as u16); } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.builder.get_data_field::(0) { 0 => { ::core::result::Result::Ok(Partial( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(Error( ::core::convert::TryInto::try_into(self.builder.get_data_field::(1)) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 50] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(30, 191, 97, 204, 228, 98, 129, 129), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 2, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 74, 1, 0, 0), ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(37, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 83, 116, 97, 114), ::capnp::word(116, 84, 117, 110, 110, 101, 108, 65), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 255, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(36, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(48, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 254, 255, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(45, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(40, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(52, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(112, 97, 114, 116, 105, 97, 108, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(200, 47, 190, 2, 188, 126, 122, 130), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(101, 114, 114, 111, 114, 0, 0, 0), ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(124, 140, 195, 30, 251, 107, 44, 184), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[0,1]; pub static MEMBERS_BY_NAME : &[u16] = &[1,0]; pub const TYPE_ID: u64 = 0x8181_62e4_cc61_bf1e; } pub enum Which { Partial(A0), Error(::core::result::Result), } pub type WhichReader<'a,> = Which<::capnp::Result>>; pub type WhichBuilder<'a,> = Which<::capnp::Result>>; } pub mod operation_complete_tunnel_q { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_id(self) -> u64 { self.reader.get_data_field::(0) } #[inline] pub fn get_local_mode(self) -> ::core::result::Result { ::core::convert::TryInto::try_into(self.reader.get_data_field::(4)) } #[inline] pub fn get_depth(self) -> u8 { self.reader.get_data_field::(10) } #[inline] pub fn get_endpoint(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_endpoint(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 2, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_id(self) -> u64 { self.builder.get_data_field::(0) } #[inline] pub fn set_id(&mut self, value: u64) { self.builder.set_data_field::(0, value); } #[inline] pub fn get_local_mode(self) -> ::core::result::Result { ::core::convert::TryInto::try_into(self.builder.get_data_field::(4)) } #[inline] pub fn set_local_mode(&mut self, value: crate::veilid_capnp::TunnelEndpointMode) { self.builder.set_data_field::(4, value as u16); } #[inline] pub fn get_depth(self) -> u8 { self.builder.get_data_field::(10) } #[inline] pub fn set_depth(&mut self, value: u8) { self.builder.set_data_field::(10, value); } #[inline] pub fn get_endpoint(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_endpoint(&mut self, value: crate::veilid_capnp::tunnel_endpoint::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_endpoint(self, ) -> crate::veilid_capnp::tunnel_endpoint::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_endpoint(&self) -> bool { !self.builder.is_pointer_field_null(0) } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_endpoint(&self) -> crate::veilid_capnp::tunnel_endpoint::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 82] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(11, 149, 235, 136, 69, 89, 120, 233), ::capnp::word(19, 0, 0, 0, 1, 0, 2, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 98, 1, 0, 0), ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(37, 0, 0, 0, 231, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 67, 111, 109, 112), ::capnp::word(108, 101, 116, 101, 84, 117, 110, 110), ::capnp::word(101, 108, 81, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(97, 0, 0, 0, 26, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(92, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(104, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 4, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(101, 0, 0, 0, 82, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(100, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(112, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 10, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(109, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(104, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(116, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(3, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(113, 0, 0, 0, 74, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(124, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(105, 100, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(108, 111, 99, 97, 108, 77, 111, 100), ::capnp::word(101, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(88, 116, 235, 155, 194, 244, 6, 239), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(100, 101, 112, 116, 104, 0, 0, 0), ::capnp::word(6, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(6, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(101, 110, 100, 112, 111, 105, 110, 116), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(125, 51, 204, 131, 169, 42, 96, 194), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => ::introspect(), 3 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[2,3,0,1]; pub const TYPE_ID: u64 = 0xe978_5945_88eb_950b; } } pub mod operation_complete_tunnel_a { pub use self::Which::{Tunnel,Error}; #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn has_tunnel(&self) -> bool { if self.reader.get_data_field::(0) != 0 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.reader.get_data_field::(0) { 0 => { ::core::result::Result::Ok(Tunnel( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(Error( ::core::convert::TryInto::try_into(self.reader.get_data_field::(1)) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn set_tunnel(&mut self, value: crate::veilid_capnp::full_tunnel::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 0); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_tunnel(self, ) -> crate::veilid_capnp::full_tunnel::Builder<'a> { self.builder.set_data_field::(0, 0); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_tunnel(&self) -> bool { if self.builder.get_data_field::(0) != 0 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_error(&mut self, value: crate::veilid_capnp::TunnelError) { self.builder.set_data_field::(0, 1); self.builder.set_data_field::(1, value as u16); } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.builder.get_data_field::(0) { 0 => { ::core::result::Result::Ok(Tunnel( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(Error( ::core::convert::TryInto::try_into(self.builder.get_data_field::(1)) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 50] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(42, 95, 118, 187, 145, 7, 9, 132), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 2, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 98, 1, 0, 0), ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(37, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 67, 111, 109, 112), ::capnp::word(108, 101, 116, 101, 84, 117, 110, 110), ::capnp::word(101, 108, 65, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 255, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 58, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(36, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(48, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 254, 255, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(45, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(40, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(52, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(116, 117, 110, 110, 101, 108, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(99, 63, 55, 117, 220, 195, 33, 152), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(101, 114, 114, 111, 114, 0, 0, 0), ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(124, 140, 195, 30, 251, 107, 44, 184), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[0,1]; pub static MEMBERS_BY_NAME : &[u16] = &[1,0]; pub const TYPE_ID: u64 = 0x8409_0791_bb76_5f2a; } pub enum Which { Tunnel(A0), Error(::core::result::Result), } pub type WhichReader<'a,> = Which<::capnp::Result>>; pub type WhichBuilder<'a,> = Which<::capnp::Result>>; } pub mod operation_cancel_tunnel_q { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_id(self) -> u64 { self.reader.get_data_field::(0) } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 0 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_id(self) -> u64 { self.builder.get_data_field::(0) } #[inline] pub fn set_id(&mut self, value: u64) { self.builder.set_data_field::(0, value); } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 35] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(56, 55, 0, 10, 174, 17, 40, 174), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(0, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 82, 1, 0, 0), ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(37, 0, 0, 0, 63, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 67, 97, 110, 99), ::capnp::word(101, 108, 84, 117, 110, 110, 101, 108), ::capnp::word(81, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(4, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 26, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(20, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(105, 100, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0]; pub const TYPE_ID: u64 = 0xae28_11ae_0a00_3738; } } pub mod operation_cancel_tunnel_a { pub use self::Which::{Tunnel,Error}; #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn which(self) -> ::core::result::Result { match self.reader.get_data_field::(4) { 0 => { ::core::result::Result::Ok(Tunnel( self.reader.get_data_field::(0) )) } 1 => { ::core::result::Result::Ok(Error( ::core::convert::TryInto::try_into(self.reader.get_data_field::(0)) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 2, pointers: 0 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn set_tunnel(&mut self, value: u64) { self.builder.set_data_field::(4, 0); self.builder.set_data_field::(0, value); } #[inline] pub fn set_error(&mut self, value: crate::veilid_capnp::TunnelError) { self.builder.set_data_field::(4, 1); self.builder.set_data_field::(0, value as u16); } #[inline] pub fn which(self) -> ::core::result::Result { match self.builder.get_data_field::(4) { 0 => { ::core::result::Result::Ok(Tunnel( self.builder.get_data_field::(0) )) } 1 => { ::core::result::Result::Ok(Error( ::core::convert::TryInto::try_into(self.builder.get_data_field::(0)) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 50] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(188, 151, 255, 46, 153, 60, 162, 187), ::capnp::word(19, 0, 0, 0, 1, 0, 2, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(0, 0, 7, 0, 0, 0, 2, 0), ::capnp::word(4, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 82, 1, 0, 0), ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(37, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 67, 97, 110, 99), ::capnp::word(101, 108, 84, 117, 110, 110, 101, 108), ::capnp::word(65, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 255, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 58, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(36, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(48, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 254, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(45, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(40, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(52, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(116, 117, 110, 110, 101, 108, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(101, 114, 114, 111, 114, 0, 0, 0), ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(124, 140, 195, 30, 251, 107, 44, 184), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[0,1]; pub static MEMBERS_BY_NAME : &[u16] = &[1,0]; pub const TYPE_ID: u64 = 0xbba2_3c99_2eff_97bc; } pub enum Which { Tunnel(u64), Error(::core::result::Result), } pub type WhichReader = Which; pub type WhichBuilder = Which; } pub mod question { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_respond_to(self) -> crate::veilid_capnp::question::respond_to::Reader<'a> { self.reader.into() } #[inline] pub fn get_detail(self) -> crate::veilid_capnp::question::detail::Reader<'a> { self.reader.into() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_respond_to(self) -> crate::veilid_capnp::question::respond_to::Builder<'a> { self.builder.into() } #[inline] pub fn init_respond_to(mut self, ) -> crate::veilid_capnp::question::respond_to::Builder<'a> { self.builder.set_data_field::(0, 0); self.builder.reborrow().get_pointer_field(0).clear(); self.builder.into() } #[inline] pub fn get_detail(self) -> crate::veilid_capnp::question::detail::Builder<'a> { self.builder.into() } #[inline] pub fn init_detail(mut self, ) -> crate::veilid_capnp::question::detail::Builder<'a> { self.builder.set_data_field::(1, 0); self.builder.reborrow().get_pointer_field(1).clear(); self.builder.into() } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_respond_to(&self) -> crate::veilid_capnp::question::respond_to::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.noop()) } pub fn get_detail(&self) -> crate::veilid_capnp::question::detail::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.noop()) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 35] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(112, 239, 146, 52, 195, 11, 81, 216), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(2, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 226, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 81, 117, 101, 115, 116), ::capnp::word(105, 111, 110, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(37, 188, 37, 253, 21, 134, 139, 165), ::capnp::word(41, 0, 0, 0, 82, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(178, 131, 145, 42, 21, 110, 131, 223), ::capnp::word(21, 0, 0, 0, 58, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(114, 101, 115, 112, 111, 110, 100, 84), ::capnp::word(111, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(100, 101, 116, 97, 105, 108, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[1,0]; pub const TYPE_ID: u64 = 0xd851_0bc3_3492_ef70; } pub mod respond_to { pub use self::Which::{Sender,PrivateRoute}; #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn has_private_route(&self) -> bool { if self.reader.get_data_field::(0) != 1 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.reader.get_data_field::(0) { 0 => { ::core::result::Result::Ok(Sender( () )) } 1 => { ::core::result::Result::Ok(PrivateRoute( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn set_sender(&mut self, _value: ()) { self.builder.set_data_field::(0, 0); } #[inline] pub fn set_private_route(&mut self, value: crate::veilid_capnp::private_route::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 1); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_private_route(self, ) -> crate::veilid_capnp::private_route::Builder<'a> { self.builder.set_data_field::(0, 1); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_private_route(&self) -> bool { if self.builder.get_data_field::(0) != 1 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.builder.get_data_field::(0) { 0 => { ::core::result::Result::Ok(Sender( () )) } 1 => { ::core::result::Result::Ok(PrivateRoute( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 49] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(37, 188, 37, 253, 21, 134, 139, 165), ::capnp::word(28, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(112, 239, 146, 52, 195, 11, 81, 216), ::capnp::word(2, 0, 7, 0, 1, 0, 2, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 50, 1, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 119, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 81, 117, 101, 115, 116), ::capnp::word(105, 111, 110, 46, 114, 101, 115, 112), ::capnp::word(111, 110, 100, 84, 111, 0, 0, 0), ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 255, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(41, 0, 0, 0, 58, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(36, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(48, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 254, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(45, 0, 0, 0, 106, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(44, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(56, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(115, 101, 110, 100, 101, 114, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 105, 118, 97, 116, 101, 82), ::capnp::word(111, 117, 116, 101, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(118, 231, 81, 8, 203, 252, 131, 138), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => <() as ::capnp::introspect::Introspect>::introspect(), 1 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[0,1]; pub static MEMBERS_BY_NAME : &[u16] = &[1,0]; pub const TYPE_ID: u64 = 0xa58b_8615_fd25_bc25; } pub enum Which { Sender(()), PrivateRoute(A0), } pub type WhichReader<'a,> = Which<::capnp::Result>>; pub type WhichBuilder<'a,> = Which<::capnp::Result>>; } pub mod detail { pub use self::Which::{StatusQ,FindNodeQ,AppCallQ,GetValueQ,SetValueQ,WatchValueQ,InspectValueQ}; #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn has_status_q(&self) -> bool { if self.reader.get_data_field::(1) != 0 { return false; } !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn has_find_node_q(&self) -> bool { if self.reader.get_data_field::(1) != 1 { return false; } !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn has_app_call_q(&self) -> bool { if self.reader.get_data_field::(1) != 2 { return false; } !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn has_get_value_q(&self) -> bool { if self.reader.get_data_field::(1) != 3 { return false; } !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn has_set_value_q(&self) -> bool { if self.reader.get_data_field::(1) != 4 { return false; } !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn has_watch_value_q(&self) -> bool { if self.reader.get_data_field::(1) != 5 { return false; } !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn has_inspect_value_q(&self) -> bool { if self.reader.get_data_field::(1) != 6 { return false; } !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.reader.get_data_field::(1) { 0 => { ::core::result::Result::Ok(StatusQ( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(FindNodeQ( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) )) } 2 => { ::core::result::Result::Ok(AppCallQ( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) )) } 3 => { ::core::result::Result::Ok(GetValueQ( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) )) } 4 => { ::core::result::Result::Ok(SetValueQ( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) )) } 5 => { ::core::result::Result::Ok(WatchValueQ( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) )) } 6 => { ::core::result::Result::Ok(InspectValueQ( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn set_status_q(&mut self, value: crate::veilid_capnp::operation_status_q::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(1, 0); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_status_q(self, ) -> crate::veilid_capnp::operation_status_q::Builder<'a> { self.builder.set_data_field::(1, 0); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_status_q(&self) -> bool { if self.builder.get_data_field::(1) != 0 { return false; } !self.builder.is_pointer_field_null(1) } #[inline] pub fn set_find_node_q(&mut self, value: crate::veilid_capnp::operation_find_node_q::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(1, 1); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_find_node_q(self, ) -> crate::veilid_capnp::operation_find_node_q::Builder<'a> { self.builder.set_data_field::(1, 1); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_find_node_q(&self) -> bool { if self.builder.get_data_field::(1) != 1 { return false; } !self.builder.is_pointer_field_null(1) } #[inline] pub fn set_app_call_q(&mut self, value: crate::veilid_capnp::operation_app_call_q::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(1, 2); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_app_call_q(self, ) -> crate::veilid_capnp::operation_app_call_q::Builder<'a> { self.builder.set_data_field::(1, 2); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_app_call_q(&self) -> bool { if self.builder.get_data_field::(1) != 2 { return false; } !self.builder.is_pointer_field_null(1) } #[inline] pub fn set_get_value_q(&mut self, value: crate::veilid_capnp::operation_get_value_q::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(1, 3); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_get_value_q(self, ) -> crate::veilid_capnp::operation_get_value_q::Builder<'a> { self.builder.set_data_field::(1, 3); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_get_value_q(&self) -> bool { if self.builder.get_data_field::(1) != 3 { return false; } !self.builder.is_pointer_field_null(1) } #[inline] pub fn set_set_value_q(&mut self, value: crate::veilid_capnp::operation_set_value_q::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(1, 4); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_set_value_q(self, ) -> crate::veilid_capnp::operation_set_value_q::Builder<'a> { self.builder.set_data_field::(1, 4); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_set_value_q(&self) -> bool { if self.builder.get_data_field::(1) != 4 { return false; } !self.builder.is_pointer_field_null(1) } #[inline] pub fn set_watch_value_q(&mut self, value: crate::veilid_capnp::operation_watch_value_q::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(1, 5); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_watch_value_q(self, ) -> crate::veilid_capnp::operation_watch_value_q::Builder<'a> { self.builder.set_data_field::(1, 5); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_watch_value_q(&self) -> bool { if self.builder.get_data_field::(1) != 5 { return false; } !self.builder.is_pointer_field_null(1) } #[inline] pub fn set_inspect_value_q(&mut self, value: crate::veilid_capnp::operation_inspect_value_q::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(1, 6); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_inspect_value_q(self, ) -> crate::veilid_capnp::operation_inspect_value_q::Builder<'a> { self.builder.set_data_field::(1, 6); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_inspect_value_q(&self) -> bool { if self.builder.get_data_field::(1) != 6 { return false; } !self.builder.is_pointer_field_null(1) } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.builder.get_data_field::(1) { 0 => { ::core::result::Result::Ok(StatusQ( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(FindNodeQ( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) )) } 2 => { ::core::result::Result::Ok(AppCallQ( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) )) } 3 => { ::core::result::Result::Ok(GetValueQ( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) )) } 4 => { ::core::result::Result::Ok(SetValueQ( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) )) } 5 => { ::core::result::Result::Ok(WatchValueQ( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) )) } 6 => { ::core::result::Result::Ok(InspectValueQ( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 129] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(178, 131, 145, 42, 21, 110, 131, 223), ::capnp::word(28, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(112, 239, 146, 52, 195, 11, 81, 216), ::capnp::word(2, 0, 7, 0, 1, 0, 7, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 26, 1, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 143, 1, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 81, 117, 101, 115, 116), ::capnp::word(105, 111, 110, 46, 100, 101, 116, 97), ::capnp::word(105, 108, 0, 0, 0, 0, 0, 0), ::capnp::word(28, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 255, 255, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(181, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(176, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(188, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 254, 255, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(185, 0, 0, 0, 82, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(184, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(196, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 253, 255, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 4, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(193, 0, 0, 0, 74, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(192, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(204, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(3, 0, 252, 255, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 5, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(201, 0, 0, 0, 82, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(200, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(212, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(4, 0, 251, 255, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 6, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(209, 0, 0, 0, 82, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(208, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(220, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(5, 0, 250, 255, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(217, 0, 0, 0, 98, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(216, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(228, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(6, 0, 249, 255, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 8, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(225, 0, 0, 0, 114, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(224, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(236, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(115, 116, 97, 116, 117, 115, 81, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(74, 136, 13, 167, 206, 128, 93, 134), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(102, 105, 110, 100, 78, 111, 100, 101), ::capnp::word(81, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(205, 59, 98, 233, 143, 120, 239, 253), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(97, 112, 112, 67, 97, 108, 108, 81), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(7, 69, 120, 9, 159, 123, 230, 173), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(103, 101, 116, 86, 97, 108, 117, 101), ::capnp::word(81, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(208, 165, 237, 165, 109, 91, 138, 248), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(115, 101, 116, 86, 97, 108, 117, 101), ::capnp::word(81, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(197, 219, 139, 255, 145, 97, 192, 186), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(119, 97, 116, 99, 104, 86, 97, 108), ::capnp::word(117, 101, 81, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(40, 178, 185, 71, 197, 166, 165, 249), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(105, 110, 115, 112, 101, 99, 116, 86), ::capnp::word(97, 108, 117, 101, 81, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(90, 245, 22, 253, 210, 18, 247, 222), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => ::introspect(), 3 => ::introspect(), 4 => ::introspect(), 5 => ::introspect(), 6 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[0,1,2,3,4,5,6]; pub static MEMBERS_BY_NAME : &[u16] = &[2,1,3,6,4,0,5]; pub const TYPE_ID: u64 = 0xdf83_6e15_2a91_83b2; } pub enum Which { StatusQ(A0), FindNodeQ(A1), AppCallQ(A2), GetValueQ(A3), SetValueQ(A4), WatchValueQ(A5), InspectValueQ(A6), } pub type WhichReader<'a,> = Which<::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>>; pub type WhichBuilder<'a,> = Which<::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>>; } } pub mod statement { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_detail(self) -> crate::veilid_capnp::statement::detail::Reader<'a> { self.reader.into() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_detail(self) -> crate::veilid_capnp::statement::detail::Builder<'a> { self.builder.into() } #[inline] pub fn init_detail(mut self, ) -> crate::veilid_capnp::statement::detail::Builder<'a> { self.builder.set_data_field::(0, 0); self.builder.reborrow().get_pointer_field(0).clear(); self.builder.into() } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_detail(&self) -> crate::veilid_capnp::statement::detail::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.noop()) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 26] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(225, 74, 64, 143, 130, 32, 14, 153), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 234, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 63, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 83, 116, 97, 116, 101), ::capnp::word(109, 101, 110, 116, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(4, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(61, 125, 19, 220, 188, 114, 192, 204), ::capnp::word(13, 0, 0, 0, 58, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(100, 101, 116, 97, 105, 108, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0]; pub const TYPE_ID: u64 = 0x990e_2082_8f40_4ae1; } pub mod detail { pub use self::Which::{ValidateDialInfo,Route,Signal,ReturnReceipt,AppMessage,ValueChanged}; #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn has_validate_dial_info(&self) -> bool { if self.reader.get_data_field::(0) != 0 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_route(&self) -> bool { if self.reader.get_data_field::(0) != 1 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_signal(&self) -> bool { if self.reader.get_data_field::(0) != 2 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_return_receipt(&self) -> bool { if self.reader.get_data_field::(0) != 3 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_app_message(&self) -> bool { if self.reader.get_data_field::(0) != 4 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_value_changed(&self) -> bool { if self.reader.get_data_field::(0) != 5 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.reader.get_data_field::(0) { 0 => { ::core::result::Result::Ok(ValidateDialInfo( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(Route( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 2 => { ::core::result::Result::Ok(Signal( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 3 => { ::core::result::Result::Ok(ReturnReceipt( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 4 => { ::core::result::Result::Ok(AppMessage( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 5 => { ::core::result::Result::Ok(ValueChanged( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn set_validate_dial_info(&mut self, value: crate::veilid_capnp::operation_validate_dial_info::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 0); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_validate_dial_info(self, ) -> crate::veilid_capnp::operation_validate_dial_info::Builder<'a> { self.builder.set_data_field::(0, 0); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_validate_dial_info(&self) -> bool { if self.builder.get_data_field::(0) != 0 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_route(&mut self, value: crate::veilid_capnp::operation_route::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 1); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_route(self, ) -> crate::veilid_capnp::operation_route::Builder<'a> { self.builder.set_data_field::(0, 1); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_route(&self) -> bool { if self.builder.get_data_field::(0) != 1 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_signal(&mut self, value: crate::veilid_capnp::operation_signal::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 2); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_signal(self, ) -> crate::veilid_capnp::operation_signal::Builder<'a> { self.builder.set_data_field::(0, 2); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_signal(&self) -> bool { if self.builder.get_data_field::(0) != 2 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_return_receipt(&mut self, value: crate::veilid_capnp::operation_return_receipt::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 3); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_return_receipt(self, ) -> crate::veilid_capnp::operation_return_receipt::Builder<'a> { self.builder.set_data_field::(0, 3); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_return_receipt(&self) -> bool { if self.builder.get_data_field::(0) != 3 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_app_message(&mut self, value: crate::veilid_capnp::operation_app_message::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 4); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_app_message(self, ) -> crate::veilid_capnp::operation_app_message::Builder<'a> { self.builder.set_data_field::(0, 4); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_app_message(&self) -> bool { if self.builder.get_data_field::(0) != 4 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_value_changed(&mut self, value: crate::veilid_capnp::operation_value_changed::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 5); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_value_changed(self, ) -> crate::veilid_capnp::operation_value_changed::Builder<'a> { self.builder.set_data_field::(0, 5); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_value_changed(&self) -> bool { if self.builder.get_data_field::(0) != 5 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.builder.get_data_field::(0) { 0 => { ::core::result::Result::Ok(ValidateDialInfo( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(Route( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 2 => { ::core::result::Result::Ok(Signal( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 3 => { ::core::result::Result::Ok(ReturnReceipt( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 4 => { ::core::result::Result::Ok(AppMessage( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 5 => { ::core::result::Result::Ok(ValueChanged( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 113] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(61, 125, 19, 220, 188, 114, 192, 204), ::capnp::word(29, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(225, 74, 64, 143, 130, 32, 14, 153), ::capnp::word(1, 0, 7, 0, 1, 0, 6, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 34, 1, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 87, 1, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 83, 116, 97, 116, 101), ::capnp::word(109, 101, 110, 116, 46, 100, 101, 116), ::capnp::word(97, 105, 108, 0, 0, 0, 0, 0), ::capnp::word(24, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 255, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(153, 0, 0, 0, 138, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(156, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(168, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 254, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(165, 0, 0, 0, 50, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(160, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(172, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 253, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(169, 0, 0, 0, 58, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(164, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(176, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(3, 0, 252, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(173, 0, 0, 0, 114, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(172, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(184, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(4, 0, 251, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 4, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(181, 0, 0, 0, 90, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(180, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(192, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(5, 0, 250, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 5, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(189, 0, 0, 0, 106, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(188, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(200, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(118, 97, 108, 105, 100, 97, 116, 101), ::capnp::word(68, 105, 97, 108, 73, 110, 102, 111), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(200, 96, 208, 213, 215, 106, 113, 188), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(114, 111, 117, 116, 101, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(221, 199, 106, 206, 89, 24, 116, 150), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(115, 105, 103, 110, 97, 108, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(73, 126, 32, 93, 42, 79, 249, 212), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(114, 101, 116, 117, 114, 110, 82, 101), ::capnp::word(99, 101, 105, 112, 116, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(235, 14, 22, 169, 181, 181, 15, 235), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(97, 112, 112, 77, 101, 115, 115, 97), ::capnp::word(103, 101, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(245, 17, 180, 129, 45, 84, 175, 155), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(118, 97, 108, 117, 101, 67, 104, 97), ::capnp::word(110, 103, 101, 100, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(246, 27, 204, 216, 189, 158, 197, 209), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => ::introspect(), 3 => ::introspect(), 4 => ::introspect(), 5 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[0,1,2,3,4,5]; pub static MEMBERS_BY_NAME : &[u16] = &[4,3,1,2,0,5]; pub const TYPE_ID: u64 = 0xccc0_72bc_dc13_7d3d; } pub enum Which { ValidateDialInfo(A0), Route(A1), Signal(A2), ReturnReceipt(A3), AppMessage(A4), ValueChanged(A5), } pub type WhichReader<'a,> = Which<::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>>; pub type WhichBuilder<'a,> = Which<::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>>; } } pub mod answer { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_detail(self) -> crate::veilid_capnp::answer::detail::Reader<'a> { self.reader.into() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_detail(self) -> crate::veilid_capnp::answer::detail::Builder<'a> { self.builder.into() } #[inline] pub fn init_detail(mut self, ) -> crate::veilid_capnp::answer::detail::Builder<'a> { self.builder.set_data_field::(0, 0); self.builder.reborrow().get_pointer_field(0).clear(); self.builder.into() } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_detail(&self) -> crate::veilid_capnp::answer::detail::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.noop()) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 26] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(88, 16, 140, 152, 182, 184, 172, 172), ::capnp::word(19, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 210, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 63, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 65, 110, 115, 119, 101), ::capnp::word(114, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(4, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(181, 242, 159, 40, 61, 141, 102, 244), ::capnp::word(13, 0, 0, 0, 58, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(100, 101, 116, 97, 105, 108, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0]; pub const TYPE_ID: u64 = 0xacac_b8b6_988c_1058; } pub mod detail { pub use self::Which::{StatusA,FindNodeA,AppCallA,GetValueA,SetValueA,WatchValueA,InspectValueA}; #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn has_status_a(&self) -> bool { if self.reader.get_data_field::(0) != 0 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_find_node_a(&self) -> bool { if self.reader.get_data_field::(0) != 1 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_app_call_a(&self) -> bool { if self.reader.get_data_field::(0) != 2 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_get_value_a(&self) -> bool { if self.reader.get_data_field::(0) != 3 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_set_value_a(&self) -> bool { if self.reader.get_data_field::(0) != 4 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_watch_value_a(&self) -> bool { if self.reader.get_data_field::(0) != 5 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_inspect_value_a(&self) -> bool { if self.reader.get_data_field::(0) != 6 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.reader.get_data_field::(0) { 0 => { ::core::result::Result::Ok(StatusA( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(FindNodeA( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 2 => { ::core::result::Result::Ok(AppCallA( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 3 => { ::core::result::Result::Ok(GetValueA( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 4 => { ::core::result::Result::Ok(SetValueA( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 5 => { ::core::result::Result::Ok(WatchValueA( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 6 => { ::core::result::Result::Ok(InspectValueA( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn set_status_a(&mut self, value: crate::veilid_capnp::operation_status_a::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 0); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_status_a(self, ) -> crate::veilid_capnp::operation_status_a::Builder<'a> { self.builder.set_data_field::(0, 0); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_status_a(&self) -> bool { if self.builder.get_data_field::(0) != 0 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_find_node_a(&mut self, value: crate::veilid_capnp::operation_find_node_a::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 1); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_find_node_a(self, ) -> crate::veilid_capnp::operation_find_node_a::Builder<'a> { self.builder.set_data_field::(0, 1); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_find_node_a(&self) -> bool { if self.builder.get_data_field::(0) != 1 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_app_call_a(&mut self, value: crate::veilid_capnp::operation_app_call_a::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 2); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_app_call_a(self, ) -> crate::veilid_capnp::operation_app_call_a::Builder<'a> { self.builder.set_data_field::(0, 2); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_app_call_a(&self) -> bool { if self.builder.get_data_field::(0) != 2 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_get_value_a(&mut self, value: crate::veilid_capnp::operation_get_value_a::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 3); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_get_value_a(self, ) -> crate::veilid_capnp::operation_get_value_a::Builder<'a> { self.builder.set_data_field::(0, 3); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_get_value_a(&self) -> bool { if self.builder.get_data_field::(0) != 3 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_set_value_a(&mut self, value: crate::veilid_capnp::operation_set_value_a::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 4); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_set_value_a(self, ) -> crate::veilid_capnp::operation_set_value_a::Builder<'a> { self.builder.set_data_field::(0, 4); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_set_value_a(&self) -> bool { if self.builder.get_data_field::(0) != 4 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_watch_value_a(&mut self, value: crate::veilid_capnp::operation_watch_value_a::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 5); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_watch_value_a(self, ) -> crate::veilid_capnp::operation_watch_value_a::Builder<'a> { self.builder.set_data_field::(0, 5); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_watch_value_a(&self) -> bool { if self.builder.get_data_field::(0) != 5 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_inspect_value_a(&mut self, value: crate::veilid_capnp::operation_inspect_value_a::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(0, 6); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_inspect_value_a(self, ) -> crate::veilid_capnp::operation_inspect_value_a::Builder<'a> { self.builder.set_data_field::(0, 6); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_inspect_value_a(&self) -> bool { if self.builder.get_data_field::(0) != 6 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.builder.get_data_field::(0) { 0 => { ::core::result::Result::Ok(StatusA( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(FindNodeA( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 2 => { ::core::result::Result::Ok(AppCallA( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 3 => { ::core::result::Result::Ok(GetValueA( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 4 => { ::core::result::Result::Ok(SetValueA( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 5 => { ::core::result::Result::Ok(WatchValueA( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 6 => { ::core::result::Result::Ok(InspectValueA( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 129] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(181, 242, 159, 40, 61, 141, 102, 244), ::capnp::word(26, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(88, 16, 140, 152, 182, 184, 172, 172), ::capnp::word(1, 0, 7, 0, 1, 0, 7, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 10, 1, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 143, 1, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 65, 110, 115, 119, 101), ::capnp::word(114, 46, 100, 101, 116, 97, 105, 108), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(28, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 255, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(181, 0, 0, 0, 66, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(176, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(188, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 254, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(185, 0, 0, 0, 82, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(184, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(196, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 253, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(193, 0, 0, 0, 74, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(192, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(204, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(3, 0, 252, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(201, 0, 0, 0, 82, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(200, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(212, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(4, 0, 251, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 4, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(209, 0, 0, 0, 82, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(208, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(220, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(5, 0, 250, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 5, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(217, 0, 0, 0, 98, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(216, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(228, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(6, 0, 249, 255, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 6, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(225, 0, 0, 0, 114, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(224, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(236, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(115, 116, 97, 116, 117, 115, 65, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(85, 42, 129, 250, 7, 244, 6, 179), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(102, 105, 110, 100, 78, 111, 100, 101), ::capnp::word(65, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(137, 112, 199, 64, 251, 242, 76, 168), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(97, 112, 112, 67, 97, 108, 108, 65), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(184, 20, 242, 133, 172, 151, 199, 247), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(103, 101, 116, 86, 97, 108, 117, 101), ::capnp::word(65, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(159, 36, 224, 242, 70, 187, 150, 216), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(115, 101, 116, 86, 97, 108, 117, 101), ::capnp::word(65, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(226, 91, 201, 45, 115, 208, 120, 147), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(119, 97, 116, 99, 104, 86, 97, 108), ::capnp::word(117, 101, 65, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(147, 168, 75, 6, 183, 202, 38, 167), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(105, 110, 115, 112, 101, 99, 116, 86), ::capnp::word(97, 108, 117, 101, 65, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(2, 225, 14, 150, 175, 127, 181, 184), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => ::introspect(), 3 => ::introspect(), 4 => ::introspect(), 5 => ::introspect(), 6 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[0,1,2,3,4,5,6]; pub static MEMBERS_BY_NAME : &[u16] = &[2,1,3,6,4,0,5]; pub const TYPE_ID: u64 = 0xf466_8d3d_289f_f2b5; } pub enum Which { StatusA(A0), FindNodeA(A1), AppCallA(A2), GetValueA(A3), SetValueA(A4), WatchValueA(A5), InspectValueA(A6), } pub type WhichReader<'a,> = Which<::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>>; pub type WhichBuilder<'a,> = Which<::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>,::capnp::Result>>; } } pub mod operation { #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn get_op_id(self) -> u64 { self.reader.get_data_field::(0) } #[inline] pub fn get_sender_peer_info(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_sender_peer_info(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_target_node_info_ts(self) -> u64 { self.reader.get_data_field::(1) } #[inline] pub fn get_kind(self) -> crate::veilid_capnp::operation::kind::Reader<'a> { self.reader.into() } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 3, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn get_op_id(self) -> u64 { self.builder.get_data_field::(0) } #[inline] pub fn set_op_id(&mut self, value: u64) { self.builder.set_data_field::(0, value); } #[inline] pub fn get_sender_peer_info(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_sender_peer_info(&mut self, value: crate::veilid_capnp::peer_info::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_sender_peer_info(self, ) -> crate::veilid_capnp::peer_info::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_sender_peer_info(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_target_node_info_ts(self) -> u64 { self.builder.get_data_field::(1) } #[inline] pub fn set_target_node_info_ts(&mut self, value: u64) { self.builder.set_data_field::(1, value); } #[inline] pub fn get_kind(self) -> crate::veilid_capnp::operation::kind::Builder<'a> { self.builder.into() } #[inline] pub fn init_kind(mut self, ) -> crate::veilid_capnp::operation::kind::Builder<'a> { self.builder.set_data_field::(8, 0); self.builder.reborrow().get_pointer_field(1).clear(); self.builder.into() } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { pub fn get_sender_peer_info(&self) -> crate::veilid_capnp::peer_info::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } pub fn get_kind(&self) -> crate::veilid_capnp::operation::kind::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.noop()) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 74] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(59, 60, 64, 53, 196, 17, 40, 191), ::capnp::word(19, 0, 0, 0, 1, 0, 3, 0), ::capnp::word(2, 171, 52, 55, 3, 232, 252, 143), ::capnp::word(2, 0, 7, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 234, 0, 0, 0), ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 231, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(16, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(97, 0, 0, 0, 42, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(92, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(104, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(101, 0, 0, 0, 122, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(100, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(112, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(109, 0, 0, 0, 138, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(124, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(3, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(25, 105, 98, 160, 94, 146, 86, 179), ::capnp::word(121, 0, 0, 0, 42, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(111, 112, 73, 100, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(115, 101, 110, 100, 101, 114, 80, 101), ::capnp::word(101, 114, 73, 110, 102, 111, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(203, 75, 60, 93, 45, 114, 45, 254), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(116, 97, 114, 103, 101, 116, 78, 111), ::capnp::word(100, 101, 73, 110, 102, 111, 84, 115), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(107, 105, 110, 100, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => ::introspect(), 3 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[3,0,1,2]; pub const TYPE_ID: u64 = 0xbf28_11c4_3540_3c3b; } pub mod kind { pub use self::Which::{Question,Statement,Answer}; #[derive(Copy, Clone)] pub struct Owned(()); impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } } impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; } impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; } pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> } impl <'a,> ::core::marker::Copy for Reader<'a,> {} impl <'a,> ::core::clone::Clone for Reader<'a,> { fn clone(&self) -> Self { *self } } impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> { fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self { Self { reader, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Reader<'a> { fn from(reader: Reader<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::core::fmt::Debug for Reader<'a,> { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> { core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f) } } impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> { fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(reader.get_struct(default)?.into()) } } impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> { fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> { self.reader } } impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> { fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) { self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table)) } } impl <'a,> Reader<'a,> { pub fn reborrow(&self) -> Reader<'_,> { Self { .. *self } } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.reader.total_size() } #[inline] pub fn has_question(&self) -> bool { if self.reader.get_data_field::(8) != 0 { return false; } !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn has_statement(&self) -> bool { if self.reader.get_data_field::(8) != 1 { return false; } !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn has_answer(&self) -> bool { if self.reader.get_data_field::(8) != 2 { return false; } !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.reader.get_data_field::(8) { 0 => { ::core::result::Result::Ok(Question( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(Statement( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) )) } 2 => { ::core::result::Result::Ok(Answer( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> } impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 3, pointers: 2 }; } impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> { const TYPE_ID: u64 = _private::TYPE_ID; } impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> { fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self { Self { builder, } } } impl <'a,> ::core::convert::From> for ::capnp::dynamic_value::Builder<'a> { fn from(builder: Builder<'a,>) -> Self { Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>}))) } } impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> { fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) { self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table)) } } impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> { fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self { builder.init_struct(::STRUCT_SIZE).into() } fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result { ::core::result::Result::Ok(builder.get_struct(::STRUCT_SIZE, default)?.into()) } } impl <'a,> ::capnp::traits::SetterInput> for Reader<'a,> { fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) } } impl <'a,> Builder<'a,> { pub fn into_reader(self) -> Reader<'a,> { self.builder.into_reader().into() } pub fn reborrow(&mut self) -> Builder<'_,> { Builder { builder: self.builder.reborrow() } } pub fn reborrow_as_reader(&self) -> Reader<'_,> { self.builder.as_reader().into() } pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> { self.builder.as_reader().total_size() } #[inline] pub fn set_question(&mut self, value: crate::veilid_capnp::question::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(8, 0); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_question(self, ) -> crate::veilid_capnp::question::Builder<'a> { self.builder.set_data_field::(8, 0); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_question(&self) -> bool { if self.builder.get_data_field::(8) != 0 { return false; } !self.builder.is_pointer_field_null(1) } #[inline] pub fn set_statement(&mut self, value: crate::veilid_capnp::statement::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(8, 1); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_statement(self, ) -> crate::veilid_capnp::statement::Builder<'a> { self.builder.set_data_field::(8, 1); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_statement(&self) -> bool { if self.builder.get_data_field::(8) != 1 { return false; } !self.builder.is_pointer_field_null(1) } #[inline] pub fn set_answer(&mut self, value: crate::veilid_capnp::answer::Reader<'_>) -> ::capnp::Result<()> { self.builder.set_data_field::(8, 2); ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_answer(self, ) -> crate::veilid_capnp::answer::Builder<'a> { self.builder.set_data_field::(8, 2); ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), 0) } #[inline] pub fn has_answer(&self) -> bool { if self.builder.get_data_field::(8) != 2 { return false; } !self.builder.is_pointer_field_null(1) } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.builder.get_data_field::(8) { 0 => { ::core::result::Result::Ok(Question( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(Statement( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) )) } 2 => { ::core::result::Result::Ok(Answer( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) )) } x => ::core::result::Result::Err(::capnp::NotInSchema(x)) } } } pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline } impl ::capnp::capability::FromTypelessPipeline for Pipeline { fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self { Self { _typeless: typeless, } } } impl Pipeline { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 65] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(25, 105, 98, 160, 94, 146, 86, 179), ::capnp::word(29, 0, 0, 0, 1, 0, 3, 0), ::capnp::word(59, 60, 64, 53, 196, 17, 40, 191), ::capnp::word(2, 0, 7, 0, 1, 0, 3, 0), ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 18, 1, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 175, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 114, 111, 116, 111, 47, 118, 101), ::capnp::word(105, 108, 105, 100, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 79, 112, 101, 114, 97), ::capnp::word(116, 105, 111, 110, 46, 107, 105, 110), ::capnp::word(100, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(12, 0, 0, 0, 3, 0, 4, 0), ::capnp::word(0, 0, 255, 255, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(69, 0, 0, 0, 74, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(68, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(80, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(1, 0, 254, 255, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 4, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(77, 0, 0, 0, 82, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(76, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(88, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(2, 0, 253, 255, 1, 0, 0, 0), ::capnp::word(0, 0, 1, 0, 5, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(85, 0, 0, 0, 58, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(80, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(92, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(113, 117, 101, 115, 116, 105, 111, 110), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(112, 239, 146, 52, 195, 11, 81, 216), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(115, 116, 97, 116, 101, 109, 101, 110), ::capnp::word(116, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(225, 74, 64, 143, 130, 32, 14, 153), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(97, 110, 115, 119, 101, 114, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(88, 16, 140, 152, 182, 184, 172, 172), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ]; pub fn get_field_types(index: u16) -> ::capnp::introspect::Type { match index { 0 => ::introspect(), 1 => ::introspect(), 2 => ::introspect(), _ => panic!("invalid field index {}", index), } } pub fn get_annotation_types(child_index: Option, index: u32) -> ::capnp::introspect::Type { panic!("invalid annotation indices ({:?}, {}) ", child_index, index) } pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema { encoded_node: &ENCODED_NODE, nonunion_members: NONUNION_MEMBERS, members_by_discriminant: MEMBERS_BY_DISCRIMINANT, members_by_name: MEMBERS_BY_NAME, }; pub static NONUNION_MEMBERS : &[u16] = &[]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[0,1,2]; pub static MEMBERS_BY_NAME : &[u16] = &[2,0,1]; pub const TYPE_ID: u64 = 0xb356_925e_a062_6919; } pub enum Which { Question(A0), Statement(A1), Answer(A2), } pub type WhichReader<'a,> = Which<::capnp::Result>,::capnp::Result>,::capnp::Result>>; pub type WhichBuilder<'a,> = Which<::capnp::Result>,::capnp::Result>,::capnp::Result>>; } } //BUILDHASH:a28970f74fcf7989d47e1457e848e5de33d8b7a4003a0e439c95f442ecf69fd3 //CAPNPDESIREDVERSIONHASH:bfec2e34583ada7e6af2cb73993fb75a3f7147a6c943e5ff5f5c4294fc577b90