// @generated by the capnpc-rust plugin to the Cap'n Proto schema compiler. // DO NOT EDIT. // source: spec.capnp pub mod base_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_id(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_id(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_key(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_key(&self) -> bool { !self.reader.get_pointer_field(1).is_null() } #[inline] pub fn get_client_uuid(self) -> ::capnp::Result<::capnp::text::Reader<'a>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn has_client_uuid(&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_id(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_id(&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_id(self, size: u32) -> ::capnp::text::Builder<'a> { self.builder.get_pointer_field(0).init_text(size) } #[inline] pub fn has_id(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_key(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_key(&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_key(self, size: u32) -> ::capnp::text::Builder<'a> { self.builder.get_pointer_field(1).init_text(size) } #[inline] pub fn has_key(&self) -> bool { !self.builder.is_pointer_field_null(1) } #[inline] pub fn get_client_uuid(self) -> ::capnp::Result<::capnp::text::Builder<'a>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(2), ::core::option::Option::None) } #[inline] pub fn set_client_uuid(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text::Owned>) { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(2), value, false).unwrap() } #[inline] pub fn init_client_uuid(self, size: u32) -> ::capnp::text::Builder<'a> { self.builder.get_pointer_field(2).init_text(size) } #[inline] pub fn has_client_uuid(&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; 63] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(101, 164, 21, 79, 135, 205, 250, 222), ::capnp::word(11, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(190, 8, 91, 15, 118, 94, 5, 173), ::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, 186, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(25, 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(115, 112, 101, 99, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 66, 97, 115, 101, 77), ::capnp::word(101, 115, 115, 97, 103, 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, 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, 34, 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, 90, 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(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), ::capnp::word(107, 101, 121, 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), ::capnp::word(99, 108, 105, 101, 110, 116, 85, 117), ::capnp::word(105, 100, 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), ::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 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(), 1 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(), 2 => <::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,2]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[2,0,1]; pub const TYPE_ID: u64 = 0xdefa_cd87_4f15_a465; } } pub mod put_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_base(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_base(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_value(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_value(&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_base(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_base(&mut self, value: crate::spec_capnp::base_message::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_base(self, ) -> crate::spec_capnp::base_message::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_base(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_value(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_value(&mut self, value: ::capnp::data::Reader<'_>) { self.builder.reborrow().get_pointer_field(1).set_data(value); } #[inline] pub fn init_value(self, size: u32) -> ::capnp::data::Builder<'a> { self.builder.get_pointer_field(1).init_data(size) } #[inline] pub fn has_value(&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_base(&self) -> crate::spec_capnp::base_message::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 47] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(149, 34, 114, 0, 99, 105, 253, 254), ::capnp::word(11, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(190, 8, 91, 15, 118, 94, 5, 173), ::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, 178, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(25, 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(115, 112, 101, 99, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 80, 117, 116, 77, 101), ::capnp::word(115, 115, 97, 103, 101, 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, 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(98, 97, 115, 101, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(101, 164, 21, 79, 135, 205, 250, 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), ::capnp::word(118, 97, 108, 117, 101, 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] = &[0,1]; pub const TYPE_ID: u64 = 0xfefd_6963_0072_2295; } } pub mod server_request { pub use self::Which::{Put,Get,Delete,Subscribe,Unsubscribe}; #[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_put(&self) -> bool { if self.reader.get_data_field::(0) != 0 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_get(&self) -> bool { if self.reader.get_data_field::(0) != 1 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_delete(&self) -> bool { if self.reader.get_data_field::(0) != 2 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_subscribe(&self) -> bool { if self.reader.get_data_field::(0) != 3 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_unsubscribe(&self) -> bool { if self.reader.get_data_field::(0) != 4 { 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(Put( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(Get( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 2 => { ::core::result::Result::Ok(Delete( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 3 => { ::core::result::Result::Ok(Subscribe( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 4 => { ::core::result::Result::Ok(Unsubscribe( ::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_put(&mut self, value: crate::spec_capnp::put_message::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_put(self, ) -> crate::spec_capnp::put_message::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_put(&self) -> bool { if self.builder.get_data_field::(0) != 0 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_get(&mut self, value: crate::spec_capnp::base_message::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_get(self, ) -> crate::spec_capnp::base_message::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_get(&self) -> bool { if self.builder.get_data_field::(0) != 1 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_delete(&mut self, value: crate::spec_capnp::base_message::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_delete(self, ) -> crate::spec_capnp::base_message::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_delete(&self) -> bool { if self.builder.get_data_field::(0) != 2 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_subscribe(&mut self, value: crate::spec_capnp::base_message::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_subscribe(self, ) -> crate::spec_capnp::base_message::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_subscribe(&self) -> bool { if self.builder.get_data_field::(0) != 3 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_unsubscribe(&mut self, value: crate::spec_capnp::base_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_unsubscribe(self, ) -> crate::spec_capnp::base_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_unsubscribe(&self) -> bool { if self.builder.get_data_field::(0) != 4 { 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(Put( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(Get( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 2 => { ::core::result::Result::Ok(Delete( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 3 => { ::core::result::Result::Ok(Subscribe( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 4 => { ::core::result::Result::Ok(Unsubscribe( ::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; 95] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(48, 6, 136, 101, 214, 9, 137, 213), ::capnp::word(11, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(190, 8, 91, 15, 118, 94, 5, 173), ::capnp::word(1, 0, 7, 0, 0, 0, 5, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 202, 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, 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(115, 112, 101, 99, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 83, 101, 114, 118, 101), ::capnp::word(114, 82, 101, 113, 117, 101, 115, 116), ::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, 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(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, 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(129, 0, 0, 0, 34, 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(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(133, 0, 0, 0, 58, 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(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(137, 0, 0, 0, 82, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(136, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(148, 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(145, 0, 0, 0, 98, 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(112, 117, 116, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(149, 34, 114, 0, 99, 105, 253, 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(103, 101, 116, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(101, 164, 21, 79, 135, 205, 250, 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), ::capnp::word(100, 101, 108, 101, 116, 101, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(101, 164, 21, 79, 135, 205, 250, 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), ::capnp::word(115, 117, 98, 115, 99, 114, 105, 98), ::capnp::word(101, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(101, 164, 21, 79, 135, 205, 250, 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), ::capnp::word(117, 110, 115, 117, 98, 115, 99, 114), ::capnp::word(105, 98, 101, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(101, 164, 21, 79, 135, 205, 250, 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(), _ => 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]; pub static MEMBERS_BY_NAME : &[u16] = &[2,1,0,3,4]; pub const TYPE_ID: u64 = 0xd589_09d6_6588_0630; } pub enum Which { Put(A0), Get(A1), Delete(A2), Subscribe(A3), Unsubscribe(A4), } pub type WhichReader<'a,> = Which<::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>>; } pub mod base_resp { #[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) -> ::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_id(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_status(self) -> u16 { self.reader.get_data_field::(0) } #[inline] pub fn get_message(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_message(&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_id(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_id(&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_id(self, size: u32) -> ::capnp::text::Builder<'a> { self.builder.get_pointer_field(0).init_text(size) } #[inline] pub fn has_id(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_status(self) -> u16 { self.builder.get_data_field::(0) } #[inline] pub fn set_status(&mut self, value: u16) { self.builder.set_data_field::(0, value); } #[inline] pub fn get_message(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_message(&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_message(self, size: u32) -> ::capnp::text::Builder<'a> { self.builder.get_pointer_field(1).init_text(size) } #[inline] pub fn has_message(&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 { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 62] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(196, 130, 144, 118, 170, 251, 188, 231), ::capnp::word(11, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(190, 8, 91, 15, 118, 94, 5, 173), ::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, 162, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(25, 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(115, 112, 101, 99, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 66, 97, 115, 101, 82), ::capnp::word(101, 115, 112, 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, 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, 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, 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(105, 100, 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), ::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), ::capnp::word(115, 116, 97, 116, 117, 115, 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), ::capnp::word(109, 101, 115, 115, 97, 103, 101, 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 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(), 1 => ::introspect(), 2 => <::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,2]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0,2,1]; pub const TYPE_ID: u64 = 0xe7bc_fbaa_7690_82c4; } } pub mod data_resp { #[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_base(self) -> ::capnp::Result> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn has_base(&self) -> bool { !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn get_data(self) -> ::capnp::Result<::capnp::data_list::Reader<'a>> { ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn has_data(&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_base(self) -> ::capnp::Result> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_base(&mut self, value: crate::spec_capnp::base_resp::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false) } #[inline] pub fn init_base(self, ) -> crate::spec_capnp::base_resp::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0) } #[inline] pub fn has_base(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_data(self) -> ::capnp::Result<::capnp::data_list::Builder<'a>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None) } #[inline] pub fn set_data(&mut self, value: ::capnp::data_list::Reader<'_>) -> ::capnp::Result<()> { ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false) } #[inline] pub fn init_data(self, size: u32) -> ::capnp::data_list::Builder<'a> { ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), size) } #[inline] pub fn has_data(&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_base(&self) -> crate::spec_capnp::base_resp::Pipeline { ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0)) } } mod _private { pub static ENCODED_NODE: [::capnp::Word; 51] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(45, 118, 98, 116, 87, 221, 141, 205), ::capnp::word(11, 0, 0, 0, 1, 0, 0, 0), ::capnp::word(190, 8, 91, 15, 118, 94, 5, 173), ::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, 162, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(25, 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(115, 112, 101, 99, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 68, 97, 116, 97, 82), ::capnp::word(101, 115, 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(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(68, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(98, 97, 115, 101, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(196, 130, 144, 118, 170, 251, 188, 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), ::capnp::word(100, 97, 116, 97, 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(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(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::data_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 = 0xcd8d_dd57_7462_762d; } } pub mod server_response { pub use self::Which::{Base,Get,Put,Sub}; #[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_base(&self) -> bool { if self.reader.get_data_field::(0) != 0 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_get(&self) -> bool { if self.reader.get_data_field::(0) != 1 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_put(&self) -> bool { if self.reader.get_data_field::(0) != 2 { return false; } !self.reader.get_pointer_field(0).is_null() } #[inline] pub fn has_sub(&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(Base( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(Get( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 2 => { ::core::result::Result::Ok(Put( ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None) )) } 3 => { ::core::result::Result::Ok(Sub( ::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_base(&mut self, value: crate::spec_capnp::base_resp::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_base(self, ) -> crate::spec_capnp::base_resp::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_base(&self) -> bool { if self.builder.get_data_field::(0) != 0 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_get(&mut self, value: crate::spec_capnp::data_resp::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_get(self, ) -> crate::spec_capnp::data_resp::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_get(&self) -> bool { if self.builder.get_data_field::(0) != 1 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_put(&mut self, value: crate::spec_capnp::data_resp::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_put(self, ) -> crate::spec_capnp::data_resp::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_put(&self) -> bool { if self.builder.get_data_field::(0) != 2 { return false; } !self.builder.is_pointer_field_null(0) } #[inline] pub fn set_sub(&mut self, value: crate::spec_capnp::data_resp::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_sub(self, ) -> crate::spec_capnp::data_resp::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_sub(&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(Base( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 1 => { ::core::result::Result::Ok(Get( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 2 => { ::core::result::Result::Ok(Put( ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) )) } 3 => { ::core::result::Result::Ok(Sub( ::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(47, 117, 121, 69, 96, 223, 42, 251), ::capnp::word(11, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(190, 8, 91, 15, 118, 94, 5, 173), ::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, 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(115, 112, 101, 99, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 83, 101, 114, 118, 101), ::capnp::word(114, 82, 101, 115, 112, 111, 110, 115), ::capnp::word(101, 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, 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, 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, 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, 34, 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(98, 97, 115, 101, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(196, 130, 144, 118, 170, 251, 188, 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), ::capnp::word(103, 101, 116, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(45, 118, 98, 116, 87, 221, 141, 205), ::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, 117, 116, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(45, 118, 98, 116, 87, 221, 141, 205), ::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, 0, 0, 0, 0, 0), ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(45, 118, 98, 116, 87, 221, 141, 205), ::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] = &[0,1,2,3]; pub const TYPE_ID: u64 = 0xfb2a_df60_4579_752f; } pub enum Which { Base(A0), Get(A1), Put(A2), Sub(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 notification { pub use self::Which::{Hello,Update,Close,Notfound}; #[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, ::capnp::NotInSchema> { match self.reader.get_data_field::(0) { 0 => { ::core::result::Result::Ok(Hello( () )) } 1 => { ::core::result::Result::Ok(Update( self.reader.into() )) } 2 => { ::core::result::Result::Ok(Close( self.reader.into() )) } 3 => { ::core::result::Result::Ok(Notfound( () )) } 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_hello(&mut self, _value: ()) { self.builder.set_data_field::(0, 0); } #[inline] pub fn init_update(mut self, ) -> crate::spec_capnp::notification::update::Builder<'a> { self.builder.set_data_field::(0, 1); self.builder.reborrow().get_pointer_field(0).clear(); self.builder.reborrow().get_pointer_field(1).clear(); self.builder.into() } #[inline] pub fn init_close(mut self, ) -> crate::spec_capnp::notification::close::Builder<'a> { self.builder.set_data_field::(0, 2); self.builder.reborrow().get_pointer_field(0).clear(); self.builder.into() } #[inline] pub fn set_notfound(&mut self, _value: ()) { self.builder.set_data_field::(0, 3); } #[inline] pub fn which(self) -> ::core::result::Result, ::capnp::NotInSchema> { match self.builder.get_data_field::(0) { 0 => { ::core::result::Result::Ok(Hello( () )) } 1 => { ::core::result::Result::Ok(Update( self.builder.into() )) } 2 => { ::core::result::Result::Ok(Close( self.builder.into() )) } 3 => { ::core::result::Result::Ok(Notfound( () )) } 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(139, 13, 249, 254, 52, 96, 206, 129), ::capnp::word(11, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(190, 8, 91, 15, 118, 94, 5, 173), ::capnp::word(2, 0, 7, 0, 0, 0, 4, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(21, 0, 0, 0, 194, 0, 0, 0), ::capnp::word(29, 0, 0, 0, 7, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(25, 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(115, 112, 101, 99, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 78, 111, 116, 105, 102), ::capnp::word(105, 99, 97, 116, 105, 111, 110, 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, 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, 254, 255, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(98, 103, 105, 84, 212, 124, 10, 169), ::capnp::word(101, 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(2, 0, 253, 255, 0, 0, 0, 0), ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(8, 173, 41, 43, 200, 16, 234, 174), ::capnp::word(77, 0, 0, 0, 50, 0, 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(3, 0, 252, 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(53, 0, 0, 0, 74, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(52, 0, 0, 0, 3, 0, 1, 0), ::capnp::word(64, 0, 0, 0, 2, 0, 1, 0), ::capnp::word(104, 101, 108, 108, 111, 0, 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(117, 112, 100, 97, 116, 101, 0, 0), ::capnp::word(99, 108, 111, 115, 101, 0, 0, 0), ::capnp::word(110, 111, 116, 102, 111, 117, 110, 100), ::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(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(), 2 => ::introspect(), 3 => <() 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,3]; pub static MEMBERS_BY_NAME : &[u16] = &[2,0,3,1]; pub const TYPE_ID: u64 = 0x81ce_6034_fef9_0d8b; } pub enum Which { Hello(()), Update(A0), Close(A1), Notfound(()), } pub type WhichReader<'a,> = Which,crate::spec_capnp::notification::close::Reader<'a>>; pub type WhichBuilder<'a,> = Which,crate::spec_capnp::notification::close::Builder<'a>>; pub mod update { #[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::text::Reader<'a>> { ::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_value(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_value(&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_key(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_key(&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_key(self, size: u32) -> ::capnp::text::Builder<'a> { self.builder.get_pointer_field(0).init_text(size) } #[inline] pub fn has_key(&self) -> bool { !self.builder.is_pointer_field_null(0) } #[inline] pub fn get_value(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_value(&mut self, value: ::capnp::data::Reader<'_>) { self.builder.reborrow().get_pointer_field(1).set_data(value); } #[inline] pub fn init_value(self, size: u32) -> ::capnp::data::Builder<'a> { self.builder.get_pointer_field(1).init_data(size) } #[inline] pub fn has_value(&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 { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 47] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(98, 103, 105, 84, 212, 124, 10, 169), ::capnp::word(24, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(139, 13, 249, 254, 52, 96, 206, 129), ::capnp::word(2, 0, 7, 0, 1, 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(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(25, 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(115, 112, 101, 99, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 78, 111, 116, 105, 102), ::capnp::word(105, 99, 97, 116, 105, 111, 110, 46), ::capnp::word(117, 112, 100, 97, 116, 101, 0, 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, 1, 0, 0, 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(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, 2, 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(107, 101, 121, 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), ::capnp::word(118, 97, 108, 117, 101, 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 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::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] = &[0,1]; pub const TYPE_ID: u64 = 0xa90a_7cd4_5469_6762; } } pub mod close { #[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::text::Reader<'a>> { ::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: 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::text::Builder<'a>> { ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None) } #[inline] pub fn set_key(&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_key(self, size: u32) -> ::capnp::text::Builder<'a> { self.builder.get_pointer_field(0).init_text(size) } #[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 { } mod _private { pub static ENCODED_NODE: [::capnp::Word; 32] = [ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0), ::capnp::word(8, 173, 41, 43, 200, 16, 234, 174), ::capnp::word(24, 0, 0, 0, 1, 0, 1, 0), ::capnp::word(139, 13, 249, 254, 52, 96, 206, 129), ::capnp::word(2, 0, 7, 0, 1, 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(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(25, 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(115, 112, 101, 99, 46, 99, 97, 112), ::capnp::word(110, 112, 58, 78, 111, 116, 105, 102), ::capnp::word(105, 99, 97, 116, 105, 111, 110, 46), ::capnp::word(99, 108, 111, 115, 101, 0, 0, 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, 3, 0, 0, 0), ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0), ::capnp::word(13, 0, 0, 0, 34, 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(107, 101, 121, 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 => <::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]; pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[]; pub static MEMBERS_BY_NAME : &[u16] = &[0]; pub const TYPE_ID: u64 = 0xaeea_10c8_2b29_ad08; } } }