pub mod conmon {
+ #![allow(unused_variables)]
+ pub type VersionParams<> = ::capnp::capability::Params<crate::conmon_capnp::conmon::version_params::Owned>;
+ pub type VersionResults<> = ::capnp::capability::Results<crate::conmon_capnp::conmon::version_results::Owned>;
+ pub type CreateContainerParams<> = ::capnp::capability::Params<crate::conmon_capnp::conmon::create_container_params::Owned>;
+ pub type CreateContainerResults<> = ::capnp::capability::Results<crate::conmon_capnp::conmon::create_container_results::Owned>;
+ pub type ExecSyncContainerParams<> = ::capnp::capability::Params<crate::conmon_capnp::conmon::exec_sync_container_params::Owned>;
+ pub type ExecSyncContainerResults<> = ::capnp::capability::Results<crate::conmon_capnp::conmon::exec_sync_container_results::Owned>;
+ pub type AttachContainerParams<> = ::capnp::capability::Params<crate::conmon_capnp::conmon::attach_container_params::Owned>;
+ pub type AttachContainerResults<> = ::capnp::capability::Results<crate::conmon_capnp::conmon::attach_container_results::Owned>;
+ pub type ReopenLogContainerParams<> = ::capnp::capability::Params<crate::conmon_capnp::conmon::reopen_log_container_params::Owned>;
+ pub type ReopenLogContainerResults<> = ::capnp::capability::Results<crate::conmon_capnp::conmon::reopen_log_container_results::Owned>;
+ pub type SetWindowSizeContainerParams<> = ::capnp::capability::Params<crate::conmon_capnp::conmon::set_window_size_container_params::Owned>;
+ pub type SetWindowSizeContainerResults<> = ::capnp::capability::Results<crate::conmon_capnp::conmon::set_window_size_container_results::Owned>;
+ pub type CreateNamespacesParams<> = ::capnp::capability::Params<crate::conmon_capnp::conmon::create_namespaces_params::Owned>;
+ pub type CreateNamespacesResults<> = ::capnp::capability::Results<crate::conmon_capnp::conmon::create_namespaces_results::Owned>;
+ pub type StartFdSocketParams<> = ::capnp::capability::Params<crate::conmon_capnp::conmon::start_fd_socket_params::Owned>;
+ pub type StartFdSocketResults<> = ::capnp::capability::Results<crate::conmon_capnp::conmon::start_fd_socket_results::Owned>;
+
+ pub struct Client {
+ pub client: ::capnp::capability::Client,
+ }
+ impl ::capnp::capability::FromClientHook for Client {
+ fn new(hook: Box<dyn (::capnp::private::capability::ClientHook)>) -> Self {
+ Self { client: ::capnp::capability::Client::new(hook), }
+ }
+ fn into_client_hook(self) -> Box<dyn (::capnp::private::capability::ClientHook)> {
+ self.client.hook
+ }
+ fn as_client_hook(&self) -> &dyn (::capnp::private::capability::ClientHook) {
+ &*self.client.hook
+ }
+ }
+ #[derive(Copy, Clone)]
+ pub struct Owned(());
+ impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Capability.into() } }
+ impl ::capnp::traits::Owned for Owned { type Reader<'a> = Client; type Builder<'a> = Client; }
+ impl ::capnp::traits::Pipelined for Owned { type Pipeline = Client; }
+ impl <'a,> ::capnp::traits::FromPointerReader<'a> for Client<> {
+ fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, _default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(::capnp::capability::FromClientHook::new(reader.get_capability()?))
+ }
+ }
+ impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Client<> {
+ fn init_pointer(_builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self {
+ unimplemented!()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(::capnp::capability::FromClientHook::new(builder.get_capability()?))
+ }
+ }
+
+ impl <> ::capnp::traits::SetterInput<Owned<>> for Client<> {
+ fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, from: Self, _canonicalize: bool) -> ::capnp::Result<()> {
+ pointer.set_capability(from.client.hook);
+ ::core::result::Result::Ok(())
+ }
+ }
+ impl ::capnp::traits::HasTypeId for Client {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl Clone for Client {
+ fn clone(&self) -> Self {
+ Self { client: ::capnp::capability::Client::new(self.client.hook.add_ref()), }
+ }
+ }
+ impl Client {
+ pub fn version_request(&self) -> ::capnp::capability::Request<crate::conmon_capnp::conmon::version_params::Owned,crate::conmon_capnp::conmon::version_results::Owned> {
+ self.client.new_call(_private::TYPE_ID, 0, ::core::option::Option::None)
+ }
+ pub fn create_container_request(&self) -> ::capnp::capability::Request<crate::conmon_capnp::conmon::create_container_params::Owned,crate::conmon_capnp::conmon::create_container_results::Owned> {
+ self.client.new_call(_private::TYPE_ID, 1, ::core::option::Option::None)
+ }
+ pub fn exec_sync_container_request(&self) -> ::capnp::capability::Request<crate::conmon_capnp::conmon::exec_sync_container_params::Owned,crate::conmon_capnp::conmon::exec_sync_container_results::Owned> {
+ self.client.new_call(_private::TYPE_ID, 2, ::core::option::Option::None)
+ }
+ pub fn attach_container_request(&self) -> ::capnp::capability::Request<crate::conmon_capnp::conmon::attach_container_params::Owned,crate::conmon_capnp::conmon::attach_container_results::Owned> {
+ self.client.new_call(_private::TYPE_ID, 3, ::core::option::Option::None)
+ }
+ pub fn reopen_log_container_request(&self) -> ::capnp::capability::Request<crate::conmon_capnp::conmon::reopen_log_container_params::Owned,crate::conmon_capnp::conmon::reopen_log_container_results::Owned> {
+ self.client.new_call(_private::TYPE_ID, 4, ::core::option::Option::None)
+ }
+ pub fn set_window_size_container_request(&self) -> ::capnp::capability::Request<crate::conmon_capnp::conmon::set_window_size_container_params::Owned,crate::conmon_capnp::conmon::set_window_size_container_results::Owned> {
+ self.client.new_call(_private::TYPE_ID, 5, ::core::option::Option::None)
+ }
+ pub fn create_namespaces_request(&self) -> ::capnp::capability::Request<crate::conmon_capnp::conmon::create_namespaces_params::Owned,crate::conmon_capnp::conmon::create_namespaces_results::Owned> {
+ self.client.new_call(_private::TYPE_ID, 6, ::core::option::Option::None)
+ }
+ pub fn start_fd_socket_request(&self) -> ::capnp::capability::Request<crate::conmon_capnp::conmon::start_fd_socket_params::Owned,crate::conmon_capnp::conmon::start_fd_socket_results::Owned> {
+ self.client.new_call(_private::TYPE_ID, 7, ::core::option::Option::None)
+ }
+ }
+ pub trait Server<> {
+ fn version(&mut self, _: VersionParams<>, _: VersionResults<>) -> ::capnp::capability::Promise<(), ::capnp::Error> { ::capnp::capability::Promise::err(::capnp::Error::unimplemented("method conmon::Server::version not implemented".to_string())) }
+ fn create_container(&mut self, _: CreateContainerParams<>, _: CreateContainerResults<>) -> ::capnp::capability::Promise<(), ::capnp::Error> { ::capnp::capability::Promise::err(::capnp::Error::unimplemented("method conmon::Server::create_container not implemented".to_string())) }
+ fn exec_sync_container(&mut self, _: ExecSyncContainerParams<>, _: ExecSyncContainerResults<>) -> ::capnp::capability::Promise<(), ::capnp::Error> { ::capnp::capability::Promise::err(::capnp::Error::unimplemented("method conmon::Server::exec_sync_container not implemented".to_string())) }
+ fn attach_container(&mut self, _: AttachContainerParams<>, _: AttachContainerResults<>) -> ::capnp::capability::Promise<(), ::capnp::Error> { ::capnp::capability::Promise::err(::capnp::Error::unimplemented("method conmon::Server::attach_container not implemented".to_string())) }
+ fn reopen_log_container(&mut self, _: ReopenLogContainerParams<>, _: ReopenLogContainerResults<>) -> ::capnp::capability::Promise<(), ::capnp::Error> { ::capnp::capability::Promise::err(::capnp::Error::unimplemented("method conmon::Server::reopen_log_container not implemented".to_string())) }
+ fn set_window_size_container(&mut self, _: SetWindowSizeContainerParams<>, _: SetWindowSizeContainerResults<>) -> ::capnp::capability::Promise<(), ::capnp::Error> { ::capnp::capability::Promise::err(::capnp::Error::unimplemented("method conmon::Server::set_window_size_container not implemented".to_string())) }
+ fn create_namespaces(&mut self, _: CreateNamespacesParams<>, _: CreateNamespacesResults<>) -> ::capnp::capability::Promise<(), ::capnp::Error> { ::capnp::capability::Promise::err(::capnp::Error::unimplemented("method conmon::Server::create_namespaces not implemented".to_string())) }
+ fn start_fd_socket(&mut self, _: StartFdSocketParams<>, _: StartFdSocketResults<>) -> ::capnp::capability::Promise<(), ::capnp::Error> { ::capnp::capability::Promise::err(::capnp::Error::unimplemented("method conmon::Server::start_fd_socket not implemented".to_string())) }
+ }
+ pub struct ServerDispatch<_T,> {
+ pub server: _T,
+ }
+ impl <_S: Server + 'static, > ::capnp::capability::FromServer<_S> for Client {
+ type Dispatch = ServerDispatch<_S, >;
+ fn from_server(s: _S) -> ServerDispatch<_S, > {
+ ServerDispatch { server: s, }
+ }
+ }
+ impl <_T: Server> ::core::ops::Deref for ServerDispatch<_T> {
+ type Target = _T;
+ fn deref(&self) -> &_T { &self.server}
+ }
+ impl <_T: Server> ::core::ops::DerefMut for ServerDispatch<_T> {
+ fn deref_mut(&mut self) -> &mut _T { &mut self.server}
+ }
+ impl <_T: Server> ::capnp::capability::Server for ServerDispatch<_T> {
+ fn dispatch_call(&mut self, interface_id: u64, method_id: u16, params: ::capnp::capability::Params<::capnp::any_pointer::Owned>, results: ::capnp::capability::Results<::capnp::any_pointer::Owned>) -> ::capnp::capability::Promise<(), ::capnp::Error> {
+ match interface_id {
+ _private::TYPE_ID => Self::dispatch_call_internal(&mut self.server, method_id, params, results),
+ _ => { ::capnp::capability::Promise::err(::capnp::Error::unimplemented("Method not implemented.".to_string())) }
+ }
+ }
+ }
+ impl <_T :Server> ServerDispatch<_T> {
+ pub fn dispatch_call_internal(server: &mut _T, method_id: u16, params: ::capnp::capability::Params<::capnp::any_pointer::Owned>, results: ::capnp::capability::Results<::capnp::any_pointer::Owned>) -> ::capnp::capability::Promise<(), ::capnp::Error> {
+ match method_id {
+ 0 => server.version(::capnp::private::capability::internal_get_typed_params(params), ::capnp::private::capability::internal_get_typed_results(results)),
+ 1 => server.create_container(::capnp::private::capability::internal_get_typed_params(params), ::capnp::private::capability::internal_get_typed_results(results)),
+ 2 => server.exec_sync_container(::capnp::private::capability::internal_get_typed_params(params), ::capnp::private::capability::internal_get_typed_results(results)),
+ 3 => server.attach_container(::capnp::private::capability::internal_get_typed_params(params), ::capnp::private::capability::internal_get_typed_results(results)),
+ 4 => server.reopen_log_container(::capnp::private::capability::internal_get_typed_params(params), ::capnp::private::capability::internal_get_typed_results(results)),
+ 5 => server.set_window_size_container(::capnp::private::capability::internal_get_typed_params(params), ::capnp::private::capability::internal_get_typed_results(results)),
+ 6 => server.create_namespaces(::capnp::private::capability::internal_get_typed_params(params), ::capnp::private::capability::internal_get_typed_results(results)),
+ 7 => server.start_fd_socket(::capnp::private::capability::internal_get_typed_params(params), ::capnp::private::capability::internal_get_typed_results(results)),
+ _ => { ::capnp::capability::Promise::err(::capnp::Error::unimplemented("Method not implemented.".to_string())) }
+ }
+ }
+ }
+ pub mod _private {
+ pub const TYPE_ID: u64 = 0xb737_e899_dd66_33f1;
+ }
+
+ pub mod version_request {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_verbose(self) -> bool {
+ self.reader.get_bool_field(0)
+ }
+ #[inline]
+ pub fn get_metadata_old(self) -> ::capnp::Result<::capnp::data::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_metadata_old(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ #[inline]
+ pub fn get_metadata(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_metadata(&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<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_verbose(self) -> bool {
+ self.builder.get_bool_field(0)
+ }
+ #[inline]
+ pub fn set_verbose(&mut self, value: bool) {
+ self.builder.set_bool_field(0, value);
+ }
+ #[inline]
+ pub fn get_metadata_old(self) -> ::capnp::Result<::capnp::data::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_metadata_old(&mut self, value: ::capnp::data::Reader<'_>) {
+ self.builder.reborrow().get_pointer_field(0).set_data(value);
+ }
+ #[inline]
+ pub fn init_metadata_old(self, size: u32) -> ::capnp::data::Builder<'a> {
+ self.builder.get_pointer_field(0).init_data(size)
+ }
+ #[inline]
+ pub fn has_metadata_old(&self) -> bool {
+ !self.builder.is_pointer_field_null(0)
+ }
+ #[inline]
+ pub fn get_metadata(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_metadata(&mut self, value: ::capnp::struct_list::Reader<'_,crate::conmon_capnp::conmon::text_text_map_entry::Owned>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false)
+ }
+ #[inline]
+ pub fn init_metadata(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), size)
+ }
+ #[inline]
+ pub fn has_metadata(&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; 71] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(19, 68, 48, 185, 214, 51, 42, 173),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 1, 0),
+ ::capnp::word(241, 51, 102, 221, 153, 232, 55, 183),
+ ::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, 74, 1, 0, 0),
+ ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(37, 0, 0, 0, 175, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 86, 101, 114, 115, 105, 111),
+ ::capnp::word(110, 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(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, 66, 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, 98, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(72, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(84, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(2, 0, 0, 0, 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(81, 0, 0, 0, 74, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(80, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(108, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(118, 101, 114, 98, 111, 115, 101, 0),
+ ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(109, 101, 116, 97, 100, 97, 116, 97),
+ ::capnp::word(79, 108, 100, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(109, 101, 116, 97, 100, 97, 116, 97),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(146, 211, 74, 109, 222, 253, 187, 250),
+ ::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 => <bool as ::capnp::introspect::Introspect>::introspect(),
+ 1 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 2 => <::capnp::struct_list::Owned<crate::conmon_capnp::conmon::text_text_map_entry::Owned> as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type {
+ panic!("invalid annotation indices ({:?}, {}) ", child_index, index)
+ }
+ pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema {
+ encoded_node: &ENCODED_NODE,
+ nonunion_members: NONUNION_MEMBERS,
+ members_by_discriminant: MEMBERS_BY_DISCRIMINANT,
+ members_by_name: MEMBERS_BY_NAME,
+ };
+ pub static NONUNION_MEMBERS : &[u16] = &[0,1,2];
+ pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[];
+ pub static MEMBERS_BY_NAME : &[u16] = &[2,1,0];
+ pub const TYPE_ID: u64 = 0xad2a_33d6_b930_4413;
+ }
+ }
+
+ pub mod version_response {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_process_id(self) -> u32 {
+ self.reader.get_data_field::<u32>(0)
+ }
+ #[inline]
+ pub fn get_version(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_version(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ #[inline]
+ pub fn get_tag(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_tag(&self) -> bool {
+ !self.reader.get_pointer_field(1).is_null()
+ }
+ #[inline]
+ pub fn get_commit(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_commit(&self) -> bool {
+ !self.reader.get_pointer_field(2).is_null()
+ }
+ #[inline]
+ pub fn get_build_date(self) -> ::capnp::Result<::capnp::text::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(3), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_build_date(&self) -> bool {
+ !self.reader.get_pointer_field(3).is_null()
+ }
+ #[inline]
+ pub fn get_target(self) -> ::capnp::Result<::capnp::text::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(4), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_target(&self) -> bool {
+ !self.reader.get_pointer_field(4).is_null()
+ }
+ #[inline]
+ pub fn get_rust_version(self) -> ::capnp::Result<::capnp::text::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(5), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_rust_version(&self) -> bool {
+ !self.reader.get_pointer_field(5).is_null()
+ }
+ #[inline]
+ pub fn get_cargo_version(self) -> ::capnp::Result<::capnp::text::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(6), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_cargo_version(&self) -> bool {
+ !self.reader.get_pointer_field(6).is_null()
+ }
+ #[inline]
+ pub fn get_cargo_tree(self) -> ::capnp::Result<::capnp::text::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(7), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_cargo_tree(&self) -> bool {
+ !self.reader.get_pointer_field(7).is_null()
+ }
+ #[inline]
+ pub fn get_metadata(self) -> ::capnp::Result<::capnp::data::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(8), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_metadata(&self) -> bool {
+ !self.reader.get_pointer_field(8).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: 9 };
+ }
+ 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<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_process_id(self) -> u32 {
+ self.builder.get_data_field::<u32>(0)
+ }
+ #[inline]
+ pub fn set_process_id(&mut self, value: u32) {
+ self.builder.set_data_field::<u32>(0, value);
+ }
+ #[inline]
+ pub fn get_version(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_version(&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_version(self, size: u32) -> ::capnp::text::Builder<'a> {
+ self.builder.get_pointer_field(0).init_text(size)
+ }
+ #[inline]
+ pub fn has_version(&self) -> bool {
+ !self.builder.is_pointer_field_null(0)
+ }
+ #[inline]
+ pub fn get_tag(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_tag(&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_tag(self, size: u32) -> ::capnp::text::Builder<'a> {
+ self.builder.get_pointer_field(1).init_text(size)
+ }
+ #[inline]
+ pub fn has_tag(&self) -> bool {
+ !self.builder.is_pointer_field_null(1)
+ }
+ #[inline]
+ pub fn get_commit(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_commit(&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_commit(self, size: u32) -> ::capnp::text::Builder<'a> {
+ self.builder.get_pointer_field(2).init_text(size)
+ }
+ #[inline]
+ pub fn has_commit(&self) -> bool {
+ !self.builder.is_pointer_field_null(2)
+ }
+ #[inline]
+ pub fn get_build_date(self) -> ::capnp::Result<::capnp::text::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(3), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_build_date(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text::Owned>) {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(3), value, false).unwrap()
+ }
+ #[inline]
+ pub fn init_build_date(self, size: u32) -> ::capnp::text::Builder<'a> {
+ self.builder.get_pointer_field(3).init_text(size)
+ }
+ #[inline]
+ pub fn has_build_date(&self) -> bool {
+ !self.builder.is_pointer_field_null(3)
+ }
+ #[inline]
+ pub fn get_target(self) -> ::capnp::Result<::capnp::text::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(4), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_target(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text::Owned>) {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(4), value, false).unwrap()
+ }
+ #[inline]
+ pub fn init_target(self, size: u32) -> ::capnp::text::Builder<'a> {
+ self.builder.get_pointer_field(4).init_text(size)
+ }
+ #[inline]
+ pub fn has_target(&self) -> bool {
+ !self.builder.is_pointer_field_null(4)
+ }
+ #[inline]
+ pub fn get_rust_version(self) -> ::capnp::Result<::capnp::text::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(5), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_rust_version(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text::Owned>) {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(5), value, false).unwrap()
+ }
+ #[inline]
+ pub fn init_rust_version(self, size: u32) -> ::capnp::text::Builder<'a> {
+ self.builder.get_pointer_field(5).init_text(size)
+ }
+ #[inline]
+ pub fn has_rust_version(&self) -> bool {
+ !self.builder.is_pointer_field_null(5)
+ }
+ #[inline]
+ pub fn get_cargo_version(self) -> ::capnp::Result<::capnp::text::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(6), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_cargo_version(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text::Owned>) {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(6), value, false).unwrap()
+ }
+ #[inline]
+ pub fn init_cargo_version(self, size: u32) -> ::capnp::text::Builder<'a> {
+ self.builder.get_pointer_field(6).init_text(size)
+ }
+ #[inline]
+ pub fn has_cargo_version(&self) -> bool {
+ !self.builder.is_pointer_field_null(6)
+ }
+ #[inline]
+ pub fn get_cargo_tree(self) -> ::capnp::Result<::capnp::text::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(7), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_cargo_tree(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text::Owned>) {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(7), value, false).unwrap()
+ }
+ #[inline]
+ pub fn init_cargo_tree(self, size: u32) -> ::capnp::text::Builder<'a> {
+ self.builder.get_pointer_field(7).init_text(size)
+ }
+ #[inline]
+ pub fn has_cargo_tree(&self) -> bool {
+ !self.builder.is_pointer_field_null(7)
+ }
+ #[inline]
+ pub fn get_metadata(self) -> ::capnp::Result<::capnp::data::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(8), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_metadata(&mut self, value: ::capnp::data::Reader<'_>) {
+ self.builder.reborrow().get_pointer_field(8).set_data(value);
+ }
+ #[inline]
+ pub fn init_metadata(self, size: u32) -> ::capnp::data::Builder<'a> {
+ self.builder.get_pointer_field(8).init_data(size)
+ }
+ #[inline]
+ pub fn has_metadata(&self) -> bool {
+ !self.builder.is_pointer_field_null(8)
+ }
+ }
+
+ 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; 176] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(209, 238, 31, 172, 203, 229, 75, 243),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 1, 0),
+ ::capnp::word(241, 51, 102, 221, 153, 232, 55, 183),
+ ::capnp::word(9, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 82, 1, 0, 0),
+ ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(37, 0, 0, 0, 55, 2, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 86, 101, 114, 115, 105, 111),
+ ::capnp::word(110, 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(40, 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(9, 1, 0, 0, 82, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(8, 1, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(20, 1, 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(17, 1, 0, 0, 66, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(12, 1, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(24, 1, 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(21, 1, 0, 0, 34, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(16, 1, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(28, 1, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(3, 0, 0, 0, 2, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(25, 1, 0, 0, 58, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(20, 1, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(32, 1, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(4, 0, 0, 0, 3, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 4, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(29, 1, 0, 0, 82, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(28, 1, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(40, 1, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(5, 0, 0, 0, 4, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 5, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(37, 1, 0, 0, 58, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(32, 1, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(44, 1, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(6, 0, 0, 0, 5, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 6, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(41, 1, 0, 0, 98, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(40, 1, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(52, 1, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(7, 0, 0, 0, 6, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(49, 1, 0, 0, 106, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(48, 1, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(60, 1, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(8, 0, 0, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 8, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(57, 1, 0, 0, 82, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(56, 1, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(68, 1, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(9, 0, 0, 0, 8, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 9, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(65, 1, 0, 0, 74, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(64, 1, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(76, 1, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(112, 114, 111, 99, 101, 115, 115, 73),
+ ::capnp::word(100, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(118, 101, 114, 115, 105, 111, 110, 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(116, 97, 103, 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, 111, 109, 109, 105, 116, 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(98, 117, 105, 108, 100, 68, 97, 116),
+ ::capnp::word(101, 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(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(116, 97, 114, 103, 101, 116, 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(114, 117, 115, 116, 86, 101, 114, 115),
+ ::capnp::word(105, 111, 110, 0, 0, 0, 0, 0),
+ ::capnp::word(12, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(12, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(99, 97, 114, 103, 111, 86, 101, 114),
+ ::capnp::word(115, 105, 111, 110, 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, 97, 114, 103, 111, 84, 114, 101),
+ ::capnp::word(101, 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(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(109, 101, 116, 97, 100, 97, 116, 97),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(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 => <u32 as ::capnp::introspect::Introspect>::introspect(),
+ 1 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 2 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 3 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 4 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 5 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 6 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 7 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 8 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 9 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type {
+ panic!("invalid annotation indices ({:?}, {}) ", child_index, index)
+ }
+ pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema {
+ encoded_node: &ENCODED_NODE,
+ nonunion_members: NONUNION_MEMBERS,
+ members_by_discriminant: MEMBERS_BY_DISCRIMINANT,
+ members_by_name: MEMBERS_BY_NAME,
+ };
+ pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3,4,5,6,7,8,9];
+ pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[];
+ pub static MEMBERS_BY_NAME : &[u16] = &[4,8,7,3,9,0,6,2,5,1];
+ pub const TYPE_ID: u64 = 0xf34b_e5cb_ac1f_eed1;
+ }
+ }
+
+ pub mod create_container_request {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_bundle_path(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_bundle_path(&self) -> bool {
+ !self.reader.get_pointer_field(1).is_null()
+ }
+ #[inline]
+ pub fn get_terminal(self) -> bool {
+ self.reader.get_bool_field(0)
+ }
+ #[inline]
+ pub fn get_stdin(self) -> bool {
+ self.reader.get_bool_field(1)
+ }
+ #[inline]
+ pub fn get_exit_paths(self) -> ::capnp::Result<::capnp::text_list::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(2), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_exit_paths(&self) -> bool {
+ !self.reader.get_pointer_field(2).is_null()
+ }
+ #[inline]
+ pub fn get_oom_exit_paths(self) -> ::capnp::Result<::capnp::text_list::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(3), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_oom_exit_paths(&self) -> bool {
+ !self.reader.get_pointer_field(3).is_null()
+ }
+ #[inline]
+ pub fn get_log_drivers(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::conmon_capnp::conmon::log_driver::Owned>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(4), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_log_drivers(&self) -> bool {
+ !self.reader.get_pointer_field(4).is_null()
+ }
+ #[inline]
+ pub fn get_cleanup_cmd(self) -> ::capnp::Result<::capnp::text_list::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(5), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_cleanup_cmd(&self) -> bool {
+ !self.reader.get_pointer_field(5).is_null()
+ }
+ #[inline]
+ pub fn get_global_args(self) -> ::capnp::Result<::capnp::text_list::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(6), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_global_args(&self) -> bool {
+ !self.reader.get_pointer_field(6).is_null()
+ }
+ #[inline]
+ pub fn get_command_args(self) -> ::capnp::Result<::capnp::text_list::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(7), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_command_args(&self) -> bool {
+ !self.reader.get_pointer_field(7).is_null()
+ }
+ #[inline]
+ pub fn get_metadata_old(self) -> ::capnp::Result<::capnp::data::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(8), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_metadata_old(&self) -> bool {
+ !self.reader.get_pointer_field(8).is_null()
+ }
+ #[inline]
+ pub fn get_metadata(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(9), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_metadata(&self) -> bool {
+ !self.reader.get_pointer_field(9).is_null()
+ }
+ #[inline]
+ pub fn get_env_vars(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(10), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_env_vars(&self) -> bool {
+ !self.reader.get_pointer_field(10).is_null()
+ }
+ #[inline]
+ pub fn get_cgroup_manager(self) -> ::core::result::Result<crate::conmon_capnp::conmon::CgroupManager,::capnp::NotInSchema> {
+ ::core::convert::TryInto::try_into(self.reader.get_data_field::<u16>(1))
+ }
+ #[inline]
+ pub fn get_additional_fds(self) -> ::capnp::Result<::capnp::primitive_list::Reader<'a,u64>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(11), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_additional_fds(&self) -> bool {
+ !self.reader.get_pointer_field(11).is_null()
+ }
+ #[inline]
+ pub fn get_leak_fds(self) -> ::capnp::Result<::capnp::primitive_list::Reader<'a,u64>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(12), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_leak_fds(&self) -> bool {
+ !self.reader.get_pointer_field(12).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: 13 };
+ }
+ 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<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_bundle_path(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_bundle_path(&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_bundle_path(self, size: u32) -> ::capnp::text::Builder<'a> {
+ self.builder.get_pointer_field(1).init_text(size)
+ }
+ #[inline]
+ pub fn has_bundle_path(&self) -> bool {
+ !self.builder.is_pointer_field_null(1)
+ }
+ #[inline]
+ pub fn get_terminal(self) -> bool {
+ self.builder.get_bool_field(0)
+ }
+ #[inline]
+ pub fn set_terminal(&mut self, value: bool) {
+ self.builder.set_bool_field(0, value);
+ }
+ #[inline]
+ pub fn get_stdin(self) -> bool {
+ self.builder.get_bool_field(1)
+ }
+ #[inline]
+ pub fn set_stdin(&mut self, value: bool) {
+ self.builder.set_bool_field(1, value);
+ }
+ #[inline]
+ pub fn get_exit_paths(self) -> ::capnp::Result<::capnp::text_list::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(2), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_exit_paths(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text_list::Owned>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(2), value, false)
+ }
+ #[inline]
+ pub fn init_exit_paths(self, size: u32) -> ::capnp::text_list::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(2), size)
+ }
+ #[inline]
+ pub fn has_exit_paths(&self) -> bool {
+ !self.builder.is_pointer_field_null(2)
+ }
+ #[inline]
+ pub fn get_oom_exit_paths(self) -> ::capnp::Result<::capnp::text_list::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(3), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_oom_exit_paths(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text_list::Owned>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(3), value, false)
+ }
+ #[inline]
+ pub fn init_oom_exit_paths(self, size: u32) -> ::capnp::text_list::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(3), size)
+ }
+ #[inline]
+ pub fn has_oom_exit_paths(&self) -> bool {
+ !self.builder.is_pointer_field_null(3)
+ }
+ #[inline]
+ pub fn get_log_drivers(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::log_driver::Owned>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(4), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_log_drivers(&mut self, value: ::capnp::struct_list::Reader<'_,crate::conmon_capnp::conmon::log_driver::Owned>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(4), value, false)
+ }
+ #[inline]
+ pub fn init_log_drivers(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::log_driver::Owned> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(4), size)
+ }
+ #[inline]
+ pub fn has_log_drivers(&self) -> bool {
+ !self.builder.is_pointer_field_null(4)
+ }
+ #[inline]
+ pub fn get_cleanup_cmd(self) -> ::capnp::Result<::capnp::text_list::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(5), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_cleanup_cmd(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text_list::Owned>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(5), value, false)
+ }
+ #[inline]
+ pub fn init_cleanup_cmd(self, size: u32) -> ::capnp::text_list::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(5), size)
+ }
+ #[inline]
+ pub fn has_cleanup_cmd(&self) -> bool {
+ !self.builder.is_pointer_field_null(5)
+ }
+ #[inline]
+ pub fn get_global_args(self) -> ::capnp::Result<::capnp::text_list::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(6), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_global_args(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text_list::Owned>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(6), value, false)
+ }
+ #[inline]
+ pub fn init_global_args(self, size: u32) -> ::capnp::text_list::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(6), size)
+ }
+ #[inline]
+ pub fn has_global_args(&self) -> bool {
+ !self.builder.is_pointer_field_null(6)
+ }
+ #[inline]
+ pub fn get_command_args(self) -> ::capnp::Result<::capnp::text_list::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(7), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_command_args(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text_list::Owned>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(7), value, false)
+ }
+ #[inline]
+ pub fn init_command_args(self, size: u32) -> ::capnp::text_list::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(7), size)
+ }
+ #[inline]
+ pub fn has_command_args(&self) -> bool {
+ !self.builder.is_pointer_field_null(7)
+ }
+ #[inline]
+ pub fn get_metadata_old(self) -> ::capnp::Result<::capnp::data::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(8), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_metadata_old(&mut self, value: ::capnp::data::Reader<'_>) {
+ self.builder.reborrow().get_pointer_field(8).set_data(value);
+ }
+ #[inline]
+ pub fn init_metadata_old(self, size: u32) -> ::capnp::data::Builder<'a> {
+ self.builder.get_pointer_field(8).init_data(size)
+ }
+ #[inline]
+ pub fn has_metadata_old(&self) -> bool {
+ !self.builder.is_pointer_field_null(8)
+ }
+ #[inline]
+ pub fn get_metadata(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(9), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_metadata(&mut self, value: ::capnp::struct_list::Reader<'_,crate::conmon_capnp::conmon::text_text_map_entry::Owned>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(9), value, false)
+ }
+ #[inline]
+ pub fn init_metadata(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(9), size)
+ }
+ #[inline]
+ pub fn has_metadata(&self) -> bool {
+ !self.builder.is_pointer_field_null(9)
+ }
+ #[inline]
+ pub fn get_env_vars(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(10), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_env_vars(&mut self, value: ::capnp::struct_list::Reader<'_,crate::conmon_capnp::conmon::text_text_map_entry::Owned>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(10), value, false)
+ }
+ #[inline]
+ pub fn init_env_vars(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(10), size)
+ }
+ #[inline]
+ pub fn has_env_vars(&self) -> bool {
+ !self.builder.is_pointer_field_null(10)
+ }
+ #[inline]
+ pub fn get_cgroup_manager(self) -> ::core::result::Result<crate::conmon_capnp::conmon::CgroupManager,::capnp::NotInSchema> {
+ ::core::convert::TryInto::try_into(self.builder.get_data_field::<u16>(1))
+ }
+ #[inline]
+ pub fn set_cgroup_manager(&mut self, value: crate::conmon_capnp::conmon::CgroupManager) {
+ self.builder.set_data_field::<u16>(1, value as u16);
+ }
+ #[inline]
+ pub fn get_additional_fds(self) -> ::capnp::Result<::capnp::primitive_list::Builder<'a,u64>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(11), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_additional_fds(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::primitive_list::Owned<u64>>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(11), value, false)
+ }
+ #[inline]
+ pub fn init_additional_fds(self, size: u32) -> ::capnp::primitive_list::Builder<'a,u64> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(11), size)
+ }
+ #[inline]
+ pub fn has_additional_fds(&self) -> bool {
+ !self.builder.is_pointer_field_null(11)
+ }
+ #[inline]
+ pub fn get_leak_fds(self) -> ::capnp::Result<::capnp::primitive_list::Builder<'a,u64>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(12), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_leak_fds(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::primitive_list::Owned<u64>>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(12), value, false)
+ }
+ #[inline]
+ pub fn init_leak_fds(self, size: u32) -> ::capnp::primitive_list::Builder<'a,u64> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(12), size)
+ }
+ #[inline]
+ pub fn has_leak_fds(&self) -> bool {
+ !self.builder.is_pointer_field_null(12)
+ }
+ }
+
+ 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; 313] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(202, 182, 169, 58, 250, 227, 119, 186),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 1, 0),
+ ::capnp::word(241, 51, 102, 221, 153, 232, 55, 183),
+ ::capnp::word(13, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 138, 1, 0, 0),
+ ::capnp::word(45, 0, 0, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(41, 0, 0, 0, 135, 3, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 67, 114, 101, 97, 116, 101),
+ ::capnp::word(67, 111, 110, 116, 97, 105, 110, 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(64, 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(177, 1, 0, 0, 26, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(172, 1, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(184, 1, 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(181, 1, 0, 0, 90, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(180, 1, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(192, 1, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(2, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(189, 1, 0, 0, 74, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(188, 1, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(200, 1, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(3, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(197, 1, 0, 0, 50, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(192, 1, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(204, 1, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(4, 0, 0, 0, 2, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 4, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(201, 1, 0, 0, 82, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(200, 1, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(228, 1, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(5, 0, 0, 0, 3, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 5, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(225, 1, 0, 0, 106, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(224, 1, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(252, 1, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(6, 0, 0, 0, 4, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 6, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(249, 1, 0, 0, 90, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(248, 1, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(20, 2, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(7, 0, 0, 0, 5, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(17, 2, 0, 0, 90, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(16, 2, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(44, 2, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(8, 0, 0, 0, 6, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 8, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(41, 2, 0, 0, 90, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(40, 2, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(68, 2, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(9, 0, 0, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 9, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(65, 2, 0, 0, 98, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(64, 2, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(92, 2, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(10, 0, 0, 0, 8, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 10, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(89, 2, 0, 0, 98, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(88, 2, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(100, 2, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(11, 0, 0, 0, 9, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 11, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(97, 2, 0, 0, 74, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(96, 2, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(124, 2, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(12, 0, 0, 0, 10, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 12, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(121, 2, 0, 0, 66, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(116, 2, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(144, 2, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(13, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 13, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(141, 2, 0, 0, 114, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(140, 2, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(152, 2, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(14, 0, 0, 0, 11, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 14, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(149, 2, 0, 0, 114, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(148, 2, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(176, 2, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(15, 0, 0, 0, 12, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 15, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(173, 2, 0, 0, 66, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(168, 2, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(196, 2, 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(98, 117, 110, 100, 108, 101, 80, 97),
+ ::capnp::word(116, 104, 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(116, 101, 114, 109, 105, 110, 97, 108),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(115, 116, 100, 105, 110, 0, 0, 0),
+ ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(101, 120, 105, 116, 80, 97, 116, 104),
+ ::capnp::word(115, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(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(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(111, 111, 109, 69, 120, 105, 116, 80),
+ ::capnp::word(97, 116, 104, 115, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(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(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(108, 111, 103, 68, 114, 105, 118, 101),
+ ::capnp::word(114, 115, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(52, 161, 179, 182, 142, 238, 120, 174),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(99, 108, 101, 97, 110, 117, 112, 67),
+ ::capnp::word(109, 100, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(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(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(103, 108, 111, 98, 97, 108, 65, 114),
+ ::capnp::word(103, 115, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(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(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(99, 111, 109, 109, 97, 110, 100, 65),
+ ::capnp::word(114, 103, 115, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(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(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(109, 101, 116, 97, 100, 97, 116, 97),
+ ::capnp::word(79, 108, 100, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(109, 101, 116, 97, 100, 97, 116, 97),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(146, 211, 74, 109, 222, 253, 187, 250),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(101, 110, 118, 86, 97, 114, 115, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(146, 211, 74, 109, 222, 253, 187, 250),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(99, 103, 114, 111, 117, 112, 77, 97),
+ ::capnp::word(110, 97, 103, 101, 114, 0, 0, 0),
+ ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(138, 167, 101, 39, 193, 186, 75, 170),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(97, 100, 100, 105, 116, 105, 111, 110),
+ ::capnp::word(97, 108, 70, 100, 115, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(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(108, 101, 97, 107, 70, 100, 115, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ];
+ pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
+ match index {
+ 0 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 1 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 2 => <bool as ::capnp::introspect::Introspect>::introspect(),
+ 3 => <bool as ::capnp::introspect::Introspect>::introspect(),
+ 4 => <::capnp::text_list::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 5 => <::capnp::text_list::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 6 => <::capnp::struct_list::Owned<crate::conmon_capnp::conmon::log_driver::Owned> as ::capnp::introspect::Introspect>::introspect(),
+ 7 => <::capnp::text_list::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 8 => <::capnp::text_list::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 9 => <::capnp::text_list::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 10 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 11 => <::capnp::struct_list::Owned<crate::conmon_capnp::conmon::text_text_map_entry::Owned> as ::capnp::introspect::Introspect>::introspect(),
+ 12 => <::capnp::struct_list::Owned<crate::conmon_capnp::conmon::text_text_map_entry::Owned> as ::capnp::introspect::Introspect>::introspect(),
+ 13 => <crate::conmon_capnp::conmon::CgroupManager as ::capnp::introspect::Introspect>::introspect(),
+ 14 => <::capnp::primitive_list::Owned<u64> as ::capnp::introspect::Introspect>::introspect(),
+ 15 => <::capnp::primitive_list::Owned<u64> as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type {
+ panic!("invalid annotation indices ({:?}, {}) ", child_index, index)
+ }
+ pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema {
+ encoded_node: &ENCODED_NODE,
+ nonunion_members: NONUNION_MEMBERS,
+ members_by_discriminant: MEMBERS_BY_DISCRIMINANT,
+ members_by_name: MEMBERS_BY_NAME,
+ };
+ pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
+ pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[];
+ pub static MEMBERS_BY_NAME : &[u16] = &[14,1,13,7,9,12,4,8,0,15,6,11,10,5,3,2];
+ pub const TYPE_ID: u64 = 0xba77_e3fa_3aa9_b6ca;
+ }
+ }
+
+ pub mod log_driver {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_type(self) -> ::core::result::Result<crate::conmon_capnp::conmon::log_driver::Type,::capnp::NotInSchema> {
+ ::core::convert::TryInto::try_into(self.reader.get_data_field::<u16>(0))
+ }
+ #[inline]
+ pub fn get_path(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_path(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ #[inline]
+ pub fn get_max_size(self) -> u64 {
+ self.reader.get_data_field::<u64>(1)
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 2, pointers: 1 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_type(self) -> ::core::result::Result<crate::conmon_capnp::conmon::log_driver::Type,::capnp::NotInSchema> {
+ ::core::convert::TryInto::try_into(self.builder.get_data_field::<u16>(0))
+ }
+ #[inline]
+ pub fn set_type(&mut self, value: crate::conmon_capnp::conmon::log_driver::Type) {
+ self.builder.set_data_field::<u16>(0, value as u16);
+ }
+ #[inline]
+ pub fn get_path(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_path(&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_path(self, size: u32) -> ::capnp::text::Builder<'a> {
+ self.builder.get_pointer_field(0).init_text(size)
+ }
+ #[inline]
+ pub fn has_path(&self) -> bool {
+ !self.builder.is_pointer_field_null(0)
+ }
+ #[inline]
+ pub fn get_max_size(self) -> u64 {
+ self.builder.get_data_field::<u64>(1)
+ }
+ #[inline]
+ pub fn set_max_size(&mut self, value: u64) {
+ self.builder.set_data_field::<u64>(1, value);
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 67] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(52, 161, 179, 182, 142, 238, 120, 174),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 2, 0),
+ ::capnp::word(241, 51, 102, 221, 153, 232, 55, 183),
+ ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 34, 1, 0, 0),
+ ::capnp::word(37, 0, 0, 0, 23, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(45, 0, 0, 0, 175, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 76, 111, 103, 68, 114, 105),
+ ::capnp::word(118, 101, 114, 0, 0, 0, 0, 0),
+ ::capnp::word(4, 0, 0, 0, 1, 0, 1, 0),
+ ::capnp::word(193, 91, 51, 80, 215, 227, 38, 240),
+ ::capnp::word(1, 0, 0, 0, 42, 0, 0, 0),
+ ::capnp::word(84, 121, 112, 101, 0, 0, 0, 0),
+ ::capnp::word(12, 0, 0, 0, 3, 0, 4, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(69, 0, 0, 0, 42, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(64, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(76, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(1, 0, 0, 0, 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, 42, 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(116, 121, 112, 101, 0, 0, 0, 0),
+ ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(193, 91, 51, 80, 215, 227, 38, 240),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 97, 116, 104, 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(109, 97, 120, 83, 105, 122, 101, 0),
+ ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ];
+ pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
+ match index {
+ 0 => <crate::conmon_capnp::conmon::log_driver::Type as ::capnp::introspect::Introspect>::introspect(),
+ 1 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 2 => <u64 as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type {
+ panic!("invalid annotation indices ({:?}, {}) ", child_index, index)
+ }
+ pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema {
+ encoded_node: &ENCODED_NODE,
+ nonunion_members: NONUNION_MEMBERS,
+ members_by_discriminant: MEMBERS_BY_DISCRIMINANT,
+ members_by_name: MEMBERS_BY_NAME,
+ };
+ pub static NONUNION_MEMBERS : &[u16] = &[0,1,2];
+ pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[];
+ pub static MEMBERS_BY_NAME : &[u16] = &[2,1,0];
+ pub const TYPE_ID: u64 = 0xae78_ee8e_b6b3_a134;
+ }
+
+ #[repr(u16)]
+ #[derive(Clone, Copy, Debug, PartialEq, Eq)]
+ pub enum Type {
+ ContainerRuntimeInterface = 0,
+ Json = 1,
+ }
+
+ impl ::capnp::introspect::Introspect for Type {
+ fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Enum(::capnp::introspect::RawEnumSchema { encoded_node: &type_::ENCODED_NODE, annotation_types: type_::get_annotation_types }).into() }
+ }
+ impl <'a> ::core::convert::From<Type> for ::capnp::dynamic_value::Reader<'a> {
+ fn from(e: Type) -> Self { ::capnp::dynamic_value::Enum::new(e.into(), ::capnp::introspect::RawEnumSchema { encoded_node: &type_::ENCODED_NODE, annotation_types: type_::get_annotation_types }.into()).into() }
+ }
+ impl ::core::convert::TryFrom<u16> for Type {
+ type Error = ::capnp::NotInSchema;
+ fn try_from(value: u16) -> ::core::result::Result<Self, <Type as ::core::convert::TryFrom<u16>>::Error> {
+ match value {
+ 0 => ::core::result::Result::Ok(Self::ContainerRuntimeInterface),
+ 1 => ::core::result::Result::Ok(Self::Json),
+ n => ::core::result::Result::Err(::capnp::NotInSchema(n)),
+ }
+ }
+ }
+ impl From<Type> for u16 {
+ #[inline]
+ fn from(x: Type) -> u16 { x as u16 }
+ }
+ impl ::capnp::traits::HasTypeId for Type {
+ const TYPE_ID: u64 = 0xf026_e3d7_5033_5bc1u64;
+ }
+ mod type_ {
+ pub static ENCODED_NODE: [::capnp::Word; 31] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(193, 91, 51, 80, 215, 227, 38, 240),
+ ::capnp::word(36, 0, 0, 0, 2, 0, 0, 0),
+ ::capnp::word(52, 161, 179, 182, 142, 238, 120, 174),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 74, 1, 0, 0),
+ ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(37, 0, 0, 0, 55, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 76, 111, 103, 68, 114, 105),
+ ::capnp::word(118, 101, 114, 46, 84, 121, 112, 101),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0),
+ ::capnp::word(8, 0, 0, 0, 1, 0, 2, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(17, 0, 0, 0, 210, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 42, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(99, 111, 110, 116, 97, 105, 110, 101),
+ ::capnp::word(114, 82, 117, 110, 116, 105, 109, 101),
+ ::capnp::word(73, 110, 116, 101, 114, 102, 97, 99),
+ ::capnp::word(101, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(106, 115, 111, 110, 0, 0, 0, 0),
+ ];
+ pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type {
+ panic!("invalid annotation indices ({:?}, {}) ", child_index, index)
+ }
+ }
+ }
+
+ #[repr(u16)]
+ #[derive(Clone, Copy, Debug, PartialEq, Eq)]
+ pub enum CgroupManager {
+ Systemd = 0,
+ Cgroupfs = 1,
+ }
+
+ impl ::capnp::introspect::Introspect for CgroupManager {
+ fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Enum(::capnp::introspect::RawEnumSchema { encoded_node: &cgroup_manager::ENCODED_NODE, annotation_types: cgroup_manager::get_annotation_types }).into() }
+ }
+ impl <'a> ::core::convert::From<CgroupManager> for ::capnp::dynamic_value::Reader<'a> {
+ fn from(e: CgroupManager) -> Self { ::capnp::dynamic_value::Enum::new(e.into(), ::capnp::introspect::RawEnumSchema { encoded_node: &cgroup_manager::ENCODED_NODE, annotation_types: cgroup_manager::get_annotation_types }.into()).into() }
+ }
+ impl ::core::convert::TryFrom<u16> for CgroupManager {
+ type Error = ::capnp::NotInSchema;
+ fn try_from(value: u16) -> ::core::result::Result<Self, <CgroupManager as ::core::convert::TryFrom<u16>>::Error> {
+ match value {
+ 0 => ::core::result::Result::Ok(Self::Systemd),
+ 1 => ::core::result::Result::Ok(Self::Cgroupfs),
+ n => ::core::result::Result::Err(::capnp::NotInSchema(n)),
+ }
+ }
+ }
+ impl From<CgroupManager> for u16 {
+ #[inline]
+ fn from(x: CgroupManager) -> u16 { x as u16 }
+ }
+ impl ::capnp::traits::HasTypeId for CgroupManager {
+ const TYPE_ID: u64 = 0xaa4b_bac1_2765_a78au64;
+ }
+ mod cgroup_manager {
+ pub static ENCODED_NODE: [::capnp::Word; 28] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(138, 167, 101, 39, 193, 186, 75, 170),
+ ::capnp::word(26, 0, 0, 0, 2, 0, 0, 0),
+ ::capnp::word(241, 51, 102, 221, 153, 232, 55, 183),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 66, 1, 0, 0),
+ ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(33, 0, 0, 0, 55, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 67, 103, 114, 111, 117, 112),
+ ::capnp::word(77, 97, 110, 97, 103, 101, 114, 0),
+ ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0),
+ ::capnp::word(8, 0, 0, 0, 1, 0, 2, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(17, 0, 0, 0, 66, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(9, 0, 0, 0, 74, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(115, 121, 115, 116, 101, 109, 100, 0),
+ ::capnp::word(99, 103, 114, 111, 117, 112, 102, 115),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ];
+ pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type {
+ panic!("invalid annotation indices ({:?}, {}) ", child_index, index)
+ }
+ }
+
+ pub mod create_container_response {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_container_pid(self) -> u32 {
+ self.reader.get_data_field::<u32>(0)
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 0 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_container_pid(self) -> u32 {
+ self.builder.get_data_field::<u32>(0)
+ }
+ #[inline]
+ pub fn set_container_pid(&mut self, value: u32) {
+ self.builder.set_data_field::<u32>(0, value);
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 37] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(154, 43, 119, 112, 94, 98, 58, 222),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 1, 0),
+ ::capnp::word(241, 51, 102, 221, 153, 232, 55, 183),
+ ::capnp::word(0, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 146, 1, 0, 0),
+ ::capnp::word(45, 0, 0, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(41, 0, 0, 0, 63, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 67, 114, 101, 97, 116, 101),
+ ::capnp::word(67, 111, 110, 116, 97, 105, 110, 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(4, 0, 0, 0, 3, 0, 4, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 106, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(12, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(24, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(99, 111, 110, 116, 97, 105, 110, 101),
+ ::capnp::word(114, 80, 105, 100, 0, 0, 0, 0),
+ ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(8, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ];
+ pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
+ match index {
+ 0 => <u32 as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, 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 = 0xde3a_625e_7077_2b9a;
+ }
+ }
+
+ pub mod exec_sync_container_request {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_timeout_sec(self) -> u64 {
+ self.reader.get_data_field::<u64>(0)
+ }
+ #[inline]
+ pub fn get_command(self) -> ::capnp::Result<::capnp::text_list::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_command(&self) -> bool {
+ !self.reader.get_pointer_field(1).is_null()
+ }
+ #[inline]
+ pub fn get_terminal(self) -> bool {
+ self.reader.get_bool_field(64)
+ }
+ #[inline]
+ pub fn get_metadata_old(self) -> ::capnp::Result<::capnp::data::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(2), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_metadata_old(&self) -> bool {
+ !self.reader.get_pointer_field(2).is_null()
+ }
+ #[inline]
+ pub fn get_metadata(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(3), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_metadata(&self) -> bool {
+ !self.reader.get_pointer_field(3).is_null()
+ }
+ #[inline]
+ pub fn get_env_vars(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(4), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_env_vars(&self) -> bool {
+ !self.reader.get_pointer_field(4).is_null()
+ }
+ #[inline]
+ pub fn get_cgroup_manager(self) -> ::core::result::Result<crate::conmon_capnp::conmon::CgroupManager,::capnp::NotInSchema> {
+ ::core::convert::TryInto::try_into(self.reader.get_data_field::<u16>(5))
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 2, pointers: 5 };
+ }
+ 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<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_timeout_sec(self) -> u64 {
+ self.builder.get_data_field::<u64>(0)
+ }
+ #[inline]
+ pub fn set_timeout_sec(&mut self, value: u64) {
+ self.builder.set_data_field::<u64>(0, value);
+ }
+ #[inline]
+ pub fn get_command(self) -> ::capnp::Result<::capnp::text_list::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_command(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text_list::Owned>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false)
+ }
+ #[inline]
+ pub fn init_command(self, size: u32) -> ::capnp::text_list::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), size)
+ }
+ #[inline]
+ pub fn has_command(&self) -> bool {
+ !self.builder.is_pointer_field_null(1)
+ }
+ #[inline]
+ pub fn get_terminal(self) -> bool {
+ self.builder.get_bool_field(64)
+ }
+ #[inline]
+ pub fn set_terminal(&mut self, value: bool) {
+ self.builder.set_bool_field(64, value);
+ }
+ #[inline]
+ pub fn get_metadata_old(self) -> ::capnp::Result<::capnp::data::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(2), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_metadata_old(&mut self, value: ::capnp::data::Reader<'_>) {
+ self.builder.reborrow().get_pointer_field(2).set_data(value);
+ }
+ #[inline]
+ pub fn init_metadata_old(self, size: u32) -> ::capnp::data::Builder<'a> {
+ self.builder.get_pointer_field(2).init_data(size)
+ }
+ #[inline]
+ pub fn has_metadata_old(&self) -> bool {
+ !self.builder.is_pointer_field_null(2)
+ }
+ #[inline]
+ pub fn get_metadata(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(3), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_metadata(&mut self, value: ::capnp::struct_list::Reader<'_,crate::conmon_capnp::conmon::text_text_map_entry::Owned>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(3), value, false)
+ }
+ #[inline]
+ pub fn init_metadata(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(3), size)
+ }
+ #[inline]
+ pub fn has_metadata(&self) -> bool {
+ !self.builder.is_pointer_field_null(3)
+ }
+ #[inline]
+ pub fn get_env_vars(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(4), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_env_vars(&mut self, value: ::capnp::struct_list::Reader<'_,crate::conmon_capnp::conmon::text_text_map_entry::Owned>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(4), value, false)
+ }
+ #[inline]
+ pub fn init_env_vars(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(4), size)
+ }
+ #[inline]
+ pub fn has_env_vars(&self) -> bool {
+ !self.builder.is_pointer_field_null(4)
+ }
+ #[inline]
+ pub fn get_cgroup_manager(self) -> ::core::result::Result<crate::conmon_capnp::conmon::CgroupManager,::capnp::NotInSchema> {
+ ::core::convert::TryInto::try_into(self.builder.get_data_field::<u16>(5))
+ }
+ #[inline]
+ pub fn set_cgroup_manager(&mut self, value: crate::conmon_capnp::conmon::CgroupManager) {
+ self.builder.set_data_field::<u16>(5, value as u16);
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 158] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(166, 113, 163, 144, 248, 34, 17, 244),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 2, 0),
+ ::capnp::word(241, 51, 102, 221, 153, 232, 55, 183),
+ ::capnp::word(5, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 154, 1, 0, 0),
+ ::capnp::word(45, 0, 0, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(41, 0, 0, 0, 199, 1, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 69, 120, 101, 99, 83, 121),
+ ::capnp::word(110, 99, 67, 111, 110, 116, 97, 105),
+ ::capnp::word(110, 101, 114, 82, 101, 113, 117, 101),
+ ::capnp::word(115, 116, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0),
+ ::capnp::word(32, 0, 0, 0, 3, 0, 4, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(209, 0, 0, 0, 26, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(204, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(216, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(1, 0, 0, 0, 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(213, 0, 0, 0, 90, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(212, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(224, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(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(221, 0, 0, 0, 66, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(216, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(244, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(3, 0, 0, 0, 64, 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(241, 0, 0, 0, 74, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(240, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(252, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(4, 0, 0, 0, 2, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 4, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(249, 0, 0, 0, 98, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(248, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(4, 1, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(5, 0, 0, 0, 3, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 5, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 1, 0, 0, 74, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 1, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(28, 1, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(6, 0, 0, 0, 4, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 6, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(25, 1, 0, 0, 66, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(20, 1, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(48, 1, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(7, 0, 0, 0, 5, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(45, 1, 0, 0, 114, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(44, 1, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(56, 1, 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(116, 105, 109, 101, 111, 117, 116, 83),
+ ::capnp::word(101, 99, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(99, 111, 109, 109, 97, 110, 100, 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(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(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(116, 101, 114, 109, 105, 110, 97, 108),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(109, 101, 116, 97, 100, 97, 116, 97),
+ ::capnp::word(79, 108, 100, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(109, 101, 116, 97, 100, 97, 116, 97),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(146, 211, 74, 109, 222, 253, 187, 250),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(101, 110, 118, 86, 97, 114, 115, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(146, 211, 74, 109, 222, 253, 187, 250),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(99, 103, 114, 111, 117, 112, 77, 97),
+ ::capnp::word(110, 97, 103, 101, 114, 0, 0, 0),
+ ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(138, 167, 101, 39, 193, 186, 75, 170),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ];
+ pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
+ match index {
+ 0 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 1 => <u64 as ::capnp::introspect::Introspect>::introspect(),
+ 2 => <::capnp::text_list::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 3 => <bool as ::capnp::introspect::Introspect>::introspect(),
+ 4 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 5 => <::capnp::struct_list::Owned<crate::conmon_capnp::conmon::text_text_map_entry::Owned> as ::capnp::introspect::Introspect>::introspect(),
+ 6 => <::capnp::struct_list::Owned<crate::conmon_capnp::conmon::text_text_map_entry::Owned> as ::capnp::introspect::Introspect>::introspect(),
+ 7 => <crate::conmon_capnp::conmon::CgroupManager as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type {
+ panic!("invalid annotation indices ({:?}, {}) ", child_index, index)
+ }
+ pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema {
+ encoded_node: &ENCODED_NODE,
+ nonunion_members: NONUNION_MEMBERS,
+ members_by_discriminant: MEMBERS_BY_DISCRIMINANT,
+ members_by_name: MEMBERS_BY_NAME,
+ };
+ pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3,4,5,6,7];
+ pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[];
+ pub static MEMBERS_BY_NAME : &[u16] = &[7,2,6,0,5,4,3,1];
+ pub const TYPE_ID: u64 = 0xf411_22f8_90a3_71a6;
+ }
+ }
+
+ pub mod exec_sync_container_response {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_exit_code(self) -> i32 {
+ self.reader.get_data_field::<i32>(0)
+ }
+ #[inline]
+ pub fn get_stdout(self) -> ::capnp::Result<::capnp::data::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_stdout(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ #[inline]
+ pub fn get_stderr(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_stderr(&self) -> bool {
+ !self.reader.get_pointer_field(1).is_null()
+ }
+ #[inline]
+ pub fn get_timed_out(self) -> bool {
+ self.reader.get_bool_field(32)
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 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<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_exit_code(self) -> i32 {
+ self.builder.get_data_field::<i32>(0)
+ }
+ #[inline]
+ pub fn set_exit_code(&mut self, value: i32) {
+ self.builder.set_data_field::<i32>(0, value);
+ }
+ #[inline]
+ pub fn get_stdout(self) -> ::capnp::Result<::capnp::data::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_stdout(&mut self, value: ::capnp::data::Reader<'_>) {
+ self.builder.reborrow().get_pointer_field(0).set_data(value);
+ }
+ #[inline]
+ pub fn init_stdout(self, size: u32) -> ::capnp::data::Builder<'a> {
+ self.builder.get_pointer_field(0).init_data(size)
+ }
+ #[inline]
+ pub fn has_stdout(&self) -> bool {
+ !self.builder.is_pointer_field_null(0)
+ }
+ #[inline]
+ pub fn get_stderr(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_stderr(&mut self, value: ::capnp::data::Reader<'_>) {
+ self.builder.reborrow().get_pointer_field(1).set_data(value);
+ }
+ #[inline]
+ pub fn init_stderr(self, size: u32) -> ::capnp::data::Builder<'a> {
+ self.builder.get_pointer_field(1).init_data(size)
+ }
+ #[inline]
+ pub fn has_stderr(&self) -> bool {
+ !self.builder.is_pointer_field_null(1)
+ }
+ #[inline]
+ pub fn get_timed_out(self) -> bool {
+ self.builder.get_bool_field(32)
+ }
+ #[inline]
+ pub fn set_timed_out(&mut self, value: bool) {
+ self.builder.set_bool_field(32, value);
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 83] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(252, 133, 60, 128, 29, 29, 214, 217),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 1, 0),
+ ::capnp::word(241, 51, 102, 221, 153, 232, 55, 183),
+ ::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, 1, 0, 0),
+ ::capnp::word(45, 0, 0, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(41, 0, 0, 0, 231, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 69, 120, 101, 99, 83, 121),
+ ::capnp::word(110, 99, 67, 111, 110, 116, 97, 105),
+ ::capnp::word(110, 101, 114, 82, 101, 115, 112, 111),
+ ::capnp::word(110, 115, 101, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0),
+ ::capnp::word(16, 0, 0, 0, 3, 0, 4, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(97, 0, 0, 0, 74, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(96, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(108, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(105, 0, 0, 0, 58, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(100, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(112, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(2, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(109, 0, 0, 0, 58, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(104, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(116, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(3, 0, 0, 0, 32, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(113, 0, 0, 0, 74, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(124, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(101, 120, 105, 116, 67, 111, 100, 101),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(4, 0, 0, 0, 0, 0, 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(4, 0, 0, 0, 0, 0, 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, 100, 111, 117, 116, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(115, 116, 100, 101, 114, 114, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(116, 105, 109, 101, 100, 79, 117, 116),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ];
+ pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
+ match index {
+ 0 => <i32 as ::capnp::introspect::Introspect>::introspect(),
+ 1 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 2 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 3 => <bool as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type {
+ panic!("invalid annotation indices ({:?}, {}) ", child_index, index)
+ }
+ pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema {
+ encoded_node: &ENCODED_NODE,
+ nonunion_members: NONUNION_MEMBERS,
+ members_by_discriminant: MEMBERS_BY_DISCRIMINANT,
+ members_by_name: MEMBERS_BY_NAME,
+ };
+ pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3];
+ pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[];
+ pub static MEMBERS_BY_NAME : &[u16] = &[0,2,1,3];
+ pub const TYPE_ID: u64 = 0xd9d6_1d1d_803c_85fc;
+ }
+ }
+
+ pub mod attach_request {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_socket_path(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_socket_path(&self) -> bool {
+ !self.reader.get_pointer_field(1).is_null()
+ }
+ #[inline]
+ pub fn get_exec_session_id(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_exec_session_id(&self) -> bool {
+ !self.reader.get_pointer_field(2).is_null()
+ }
+ #[inline]
+ pub fn get_stop_after_stdin_eof(self) -> bool {
+ self.reader.get_bool_field(0)
+ }
+ #[inline]
+ pub fn get_metadata_old(self) -> ::capnp::Result<::capnp::data::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(3), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_metadata_old(&self) -> bool {
+ !self.reader.get_pointer_field(3).is_null()
+ }
+ #[inline]
+ pub fn get_metadata(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(4), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_metadata(&self) -> bool {
+ !self.reader.get_pointer_field(4).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: 5 };
+ }
+ 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<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_socket_path(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_socket_path(&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_socket_path(self, size: u32) -> ::capnp::text::Builder<'a> {
+ self.builder.get_pointer_field(1).init_text(size)
+ }
+ #[inline]
+ pub fn has_socket_path(&self) -> bool {
+ !self.builder.is_pointer_field_null(1)
+ }
+ #[inline]
+ pub fn get_exec_session_id(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_exec_session_id(&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_exec_session_id(self, size: u32) -> ::capnp::text::Builder<'a> {
+ self.builder.get_pointer_field(2).init_text(size)
+ }
+ #[inline]
+ pub fn has_exec_session_id(&self) -> bool {
+ !self.builder.is_pointer_field_null(2)
+ }
+ #[inline]
+ pub fn get_stop_after_stdin_eof(self) -> bool {
+ self.builder.get_bool_field(0)
+ }
+ #[inline]
+ pub fn set_stop_after_stdin_eof(&mut self, value: bool) {
+ self.builder.set_bool_field(0, value);
+ }
+ #[inline]
+ pub fn get_metadata_old(self) -> ::capnp::Result<::capnp::data::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(3), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_metadata_old(&mut self, value: ::capnp::data::Reader<'_>) {
+ self.builder.reborrow().get_pointer_field(3).set_data(value);
+ }
+ #[inline]
+ pub fn init_metadata_old(self, size: u32) -> ::capnp::data::Builder<'a> {
+ self.builder.get_pointer_field(3).init_data(size)
+ }
+ #[inline]
+ pub fn has_metadata_old(&self) -> bool {
+ !self.builder.is_pointer_field_null(3)
+ }
+ #[inline]
+ pub fn get_metadata(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(4), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_metadata(&mut self, value: ::capnp::struct_list::Reader<'_,crate::conmon_capnp::conmon::text_text_map_entry::Owned>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(4), value, false)
+ }
+ #[inline]
+ pub fn init_metadata(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(4), size)
+ }
+ #[inline]
+ pub fn has_metadata(&self) -> bool {
+ !self.builder.is_pointer_field_null(4)
+ }
+ }
+
+ 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; 119] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(252, 58, 252, 190, 160, 60, 112, 223),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 1, 0),
+ ::capnp::word(241, 51, 102, 221, 153, 232, 55, 183),
+ ::capnp::word(5, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 66, 1, 0, 0),
+ ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(33, 0, 0, 0, 87, 1, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 65, 116, 116, 97, 99, 104),
+ ::capnp::word(82, 101, 113, 117, 101, 115, 116, 0),
+ ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0),
+ ::capnp::word(24, 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(153, 0, 0, 0, 26, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(148, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(160, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(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(157, 0, 0, 0, 90, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(156, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(168, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(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(165, 0, 0, 0, 114, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(164, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(176, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(3, 0, 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(173, 0, 0, 0, 146, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(176, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(188, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(4, 0, 0, 0, 3, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 4, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(185, 0, 0, 0, 98, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(184, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(196, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(5, 0, 0, 0, 4, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 5, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(193, 0, 0, 0, 74, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(192, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(220, 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, 111, 99, 107, 101, 116, 80, 97),
+ ::capnp::word(116, 104, 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(101, 120, 101, 99, 83, 101, 115, 115),
+ ::capnp::word(105, 111, 110, 73, 100, 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, 111, 112, 65, 102, 116, 101),
+ ::capnp::word(114, 83, 116, 100, 105, 110, 69, 111),
+ ::capnp::word(102, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(109, 101, 116, 97, 100, 97, 116, 97),
+ ::capnp::word(79, 108, 100, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(109, 101, 116, 97, 100, 97, 116, 97),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(146, 211, 74, 109, 222, 253, 187, 250),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ];
+ pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
+ match index {
+ 0 => <::capnp::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(),
+ 3 => <bool as ::capnp::introspect::Introspect>::introspect(),
+ 4 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 5 => <::capnp::struct_list::Owned<crate::conmon_capnp::conmon::text_text_map_entry::Owned> as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type {
+ panic!("invalid annotation indices ({:?}, {}) ", child_index, index)
+ }
+ pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema {
+ encoded_node: &ENCODED_NODE,
+ nonunion_members: NONUNION_MEMBERS,
+ members_by_discriminant: MEMBERS_BY_DISCRIMINANT,
+ members_by_name: MEMBERS_BY_NAME,
+ };
+ pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3,4,5];
+ pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[];
+ pub static MEMBERS_BY_NAME : &[u16] = &[2,0,5,4,1,3];
+ pub const TYPE_ID: u64 = 0xdf70_3ca0_befc_3afc;
+ }
+ }
+
+ pub mod attach_response {
+ #[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<Reader<'a,>> 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<Self> {
+ ::core::result::Result::Ok(reader.get_struct(default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> {
+ fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> {
+ self.reader
+ }
+ }
+
+ impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> {
+ fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) {
+ self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table))
+ }
+ }
+
+ impl <'a,> Reader<'a,> {
+ pub fn reborrow(&self) -> Reader<'_,> {
+ Self { .. *self }
+ }
+
+ pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> {
+ self.reader.total_size()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 0 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> for Reader<'a,> {
+ fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) }
+ }
+
+ impl <'a,> Builder<'a,> {
+ pub fn into_reader(self) -> Reader<'a,> {
+ self.builder.into_reader().into()
+ }
+ pub fn reborrow(&mut self) -> Builder<'_,> {
+ Builder { builder: self.builder.reborrow() }
+ }
+ pub fn reborrow_as_reader(&self) -> Reader<'_,> {
+ self.builder.as_reader().into()
+ }
+
+ pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> {
+ self.builder.as_reader().total_size()
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 19] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(119, 96, 200, 175, 122, 81, 229, 172),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(241, 51, 102, 221, 153, 232, 55, 183),
+ ::capnp::word(0, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 74, 1, 0, 0),
+ ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 65, 116, 116, 97, 99, 104),
+ ::capnp::word(82, 101, 115, 112, 111, 110, 115, 101),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0),
+ ];
+ pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
+ panic!("invalid field index {}", index)
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type {
+ panic!("invalid annotation indices ({:?}, {}) ", child_index, index)
+ }
+ pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema {
+ encoded_node: &ENCODED_NODE,
+ nonunion_members: NONUNION_MEMBERS,
+ members_by_discriminant: MEMBERS_BY_DISCRIMINANT,
+ members_by_name: MEMBERS_BY_NAME,
+ };
+ pub static NONUNION_MEMBERS : &[u16] = &[];
+ pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[];
+ pub static MEMBERS_BY_NAME : &[u16] = &[];
+ pub const TYPE_ID: u64 = 0xace5_517a_afc8_6077;
+ }
+ }
+
+ pub mod reopen_log_request {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_metadata_old(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_metadata_old(&self) -> bool {
+ !self.reader.get_pointer_field(1).is_null()
+ }
+ #[inline]
+ pub fn get_metadata(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(2), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_metadata(&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<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_metadata_old(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_metadata_old(&mut self, value: ::capnp::data::Reader<'_>) {
+ self.builder.reborrow().get_pointer_field(1).set_data(value);
+ }
+ #[inline]
+ pub fn init_metadata_old(self, size: u32) -> ::capnp::data::Builder<'a> {
+ self.builder.get_pointer_field(1).init_data(size)
+ }
+ #[inline]
+ pub fn has_metadata_old(&self) -> bool {
+ !self.builder.is_pointer_field_null(1)
+ }
+ #[inline]
+ pub fn get_metadata(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(2), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_metadata(&mut self, value: ::capnp::struct_list::Reader<'_,crate::conmon_capnp::conmon::text_text_map_entry::Owned>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(2), value, false)
+ }
+ #[inline]
+ pub fn init_metadata(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(2), size)
+ }
+ #[inline]
+ pub fn has_metadata(&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; 71] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(26, 65, 209, 52, 15, 110, 71, 208),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(241, 51, 102, 221, 153, 232, 55, 183),
+ ::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, 90, 1, 0, 0),
+ ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(37, 0, 0, 0, 175, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 82, 101, 111, 112, 101, 110),
+ ::capnp::word(76, 111, 103, 82, 101, 113, 117, 101),
+ ::capnp::word(115, 116, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0),
+ ::capnp::word(12, 0, 0, 0, 3, 0, 4, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(69, 0, 0, 0, 26, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(64, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(76, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(1, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(73, 0, 0, 0, 98, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(72, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(84, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(2, 0, 0, 0, 2, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(81, 0, 0, 0, 74, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(80, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(108, 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(109, 101, 116, 97, 100, 97, 116, 97),
+ ::capnp::word(79, 108, 100, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(109, 101, 116, 97, 100, 97, 116, 97),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(146, 211, 74, 109, 222, 253, 187, 250),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ];
+ pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
+ match index {
+ 0 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 1 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 2 => <::capnp::struct_list::Owned<crate::conmon_capnp::conmon::text_text_map_entry::Owned> as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, 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 = 0xd047_6e0f_34d1_411a;
+ }
+ }
+
+ pub mod reopen_log_response {
+ #[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<Reader<'a,>> 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<Self> {
+ ::core::result::Result::Ok(reader.get_struct(default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> {
+ fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> {
+ self.reader
+ }
+ }
+
+ impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> {
+ fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) {
+ self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table))
+ }
+ }
+
+ impl <'a,> Reader<'a,> {
+ pub fn reborrow(&self) -> Reader<'_,> {
+ Self { .. *self }
+ }
+
+ pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> {
+ self.reader.total_size()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 0 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> for Reader<'a,> {
+ fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) }
+ }
+
+ impl <'a,> Builder<'a,> {
+ pub fn into_reader(self) -> Reader<'a,> {
+ self.builder.into_reader().into()
+ }
+ pub fn reborrow(&mut self) -> Builder<'_,> {
+ Builder { builder: self.builder.reborrow() }
+ }
+ pub fn reborrow_as_reader(&self) -> Reader<'_,> {
+ self.builder.as_reader().into()
+ }
+
+ pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> {
+ self.builder.as_reader().total_size()
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 19] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(153, 91, 232, 107, 69, 73, 15, 162),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(241, 51, 102, 221, 153, 232, 55, 183),
+ ::capnp::word(0, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 98, 1, 0, 0),
+ ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 82, 101, 111, 112, 101, 110),
+ ::capnp::word(76, 111, 103, 82, 101, 115, 112, 111),
+ ::capnp::word(110, 115, 101, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0),
+ ];
+ pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
+ panic!("invalid field index {}", index)
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type {
+ panic!("invalid annotation indices ({:?}, {}) ", child_index, index)
+ }
+ pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema {
+ encoded_node: &ENCODED_NODE,
+ nonunion_members: NONUNION_MEMBERS,
+ members_by_discriminant: MEMBERS_BY_DISCRIMINANT,
+ members_by_name: MEMBERS_BY_NAME,
+ };
+ pub static NONUNION_MEMBERS : &[u16] = &[];
+ pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[];
+ pub static MEMBERS_BY_NAME : &[u16] = &[];
+ pub const TYPE_ID: u64 = 0xa20f_4945_6be8_5b99;
+ }
+ }
+
+ pub mod set_window_size_request {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_width(self) -> u16 {
+ self.reader.get_data_field::<u16>(0)
+ }
+ #[inline]
+ pub fn get_height(self) -> u16 {
+ self.reader.get_data_field::<u16>(1)
+ }
+ #[inline]
+ pub fn get_metadata_old(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_metadata_old(&self) -> bool {
+ !self.reader.get_pointer_field(1).is_null()
+ }
+ #[inline]
+ pub fn get_metadata(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(2), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_metadata(&self) -> bool {
+ !self.reader.get_pointer_field(2).is_null()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 3 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_width(self) -> u16 {
+ self.builder.get_data_field::<u16>(0)
+ }
+ #[inline]
+ pub fn set_width(&mut self, value: u16) {
+ self.builder.set_data_field::<u16>(0, value);
+ }
+ #[inline]
+ pub fn get_height(self) -> u16 {
+ self.builder.get_data_field::<u16>(1)
+ }
+ #[inline]
+ pub fn set_height(&mut self, value: u16) {
+ self.builder.set_data_field::<u16>(1, value);
+ }
+ #[inline]
+ pub fn get_metadata_old(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_metadata_old(&mut self, value: ::capnp::data::Reader<'_>) {
+ self.builder.reborrow().get_pointer_field(1).set_data(value);
+ }
+ #[inline]
+ pub fn init_metadata_old(self, size: u32) -> ::capnp::data::Builder<'a> {
+ self.builder.get_pointer_field(1).init_data(size)
+ }
+ #[inline]
+ pub fn has_metadata_old(&self) -> bool {
+ !self.builder.is_pointer_field_null(1)
+ }
+ #[inline]
+ pub fn get_metadata(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(2), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_metadata(&mut self, value: ::capnp::struct_list::Reader<'_,crate::conmon_capnp::conmon::text_text_map_entry::Owned>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(2), value, false)
+ }
+ #[inline]
+ pub fn init_metadata(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(2), size)
+ }
+ #[inline]
+ pub fn has_metadata(&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; 101] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(123, 209, 234, 168, 142, 139, 65, 181),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 1, 0),
+ ::capnp::word(241, 51, 102, 221, 153, 232, 55, 183),
+ ::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, 122, 1, 0, 0),
+ ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(37, 0, 0, 0, 31, 1, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 83, 101, 116, 87, 105, 110),
+ ::capnp::word(100, 111, 119, 83, 105, 122, 101, 82),
+ ::capnp::word(101, 113, 117, 101, 115, 116, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0),
+ ::capnp::word(20, 0, 0, 0, 3, 0, 4, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(125, 0, 0, 0, 26, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(120, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(132, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(1, 0, 0, 0, 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, 50, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(124, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(136, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(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(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, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(137, 0, 0, 0, 98, 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, 0, 0, 2, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 4, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(145, 0, 0, 0, 74, 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(172, 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(119, 105, 100, 116, 104, 0, 0, 0),
+ ::capnp::word(7, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(7, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(104, 101, 105, 103, 104, 116, 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, 116, 97, 100, 97, 116, 97),
+ ::capnp::word(79, 108, 100, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(109, 101, 116, 97, 100, 97, 116, 97),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(146, 211, 74, 109, 222, 253, 187, 250),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ];
+ pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
+ match index {
+ 0 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 1 => <u16 as ::capnp::introspect::Introspect>::introspect(),
+ 2 => <u16 as ::capnp::introspect::Introspect>::introspect(),
+ 3 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 4 => <::capnp::struct_list::Owned<crate::conmon_capnp::conmon::text_text_map_entry::Owned> as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type {
+ panic!("invalid annotation indices ({:?}, {}) ", child_index, index)
+ }
+ pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema {
+ encoded_node: &ENCODED_NODE,
+ nonunion_members: NONUNION_MEMBERS,
+ members_by_discriminant: MEMBERS_BY_DISCRIMINANT,
+ members_by_name: MEMBERS_BY_NAME,
+ };
+ pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3,4];
+ pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[];
+ pub static MEMBERS_BY_NAME : &[u16] = &[2,0,4,3,1];
+ pub const TYPE_ID: u64 = 0xb541_8b8e_a8ea_d17b;
+ }
+ }
+
+ pub mod set_window_size_response {
+ #[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<Reader<'a,>> 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<Self> {
+ ::core::result::Result::Ok(reader.get_struct(default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> {
+ fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> {
+ self.reader
+ }
+ }
+
+ impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> {
+ fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) {
+ self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table))
+ }
+ }
+
+ impl <'a,> Reader<'a,> {
+ pub fn reborrow(&self) -> Reader<'_,> {
+ Self { .. *self }
+ }
+
+ pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> {
+ self.reader.total_size()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 0 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> for Reader<'a,> {
+ fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) }
+ }
+
+ impl <'a,> Builder<'a,> {
+ pub fn into_reader(self) -> Reader<'a,> {
+ self.builder.into_reader().into()
+ }
+ pub fn reborrow(&mut self) -> Builder<'_,> {
+ Builder { builder: self.builder.reborrow() }
+ }
+ pub fn reborrow_as_reader(&self) -> Reader<'_,> {
+ self.builder.as_reader().into()
+ }
+
+ pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> {
+ self.builder.as_reader().total_size()
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 19] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(248, 161, 171, 51, 128, 205, 179, 249),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(241, 51, 102, 221, 153, 232, 55, 183),
+ ::capnp::word(0, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 130, 1, 0, 0),
+ ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 83, 101, 116, 87, 105, 110),
+ ::capnp::word(100, 111, 119, 83, 105, 122, 101, 82),
+ ::capnp::word(101, 115, 112, 111, 110, 115, 101, 0),
+ ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0),
+ ];
+ pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
+ panic!("invalid field index {}", index)
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type {
+ panic!("invalid annotation indices ({:?}, {}) ", child_index, index)
+ }
+ pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema {
+ encoded_node: &ENCODED_NODE,
+ nonunion_members: NONUNION_MEMBERS,
+ members_by_discriminant: MEMBERS_BY_DISCRIMINANT,
+ members_by_name: MEMBERS_BY_NAME,
+ };
+ pub static NONUNION_MEMBERS : &[u16] = &[];
+ pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[];
+ pub static MEMBERS_BY_NAME : &[u16] = &[];
+ pub const TYPE_ID: u64 = 0xf9b3_cd80_33ab_a1f8;
+ }
+ }
+
+ pub mod create_namespaces_request {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_metadata_old(self) -> ::capnp::Result<::capnp::data::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_metadata_old(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ #[inline]
+ pub fn get_namespaces(self) -> ::capnp::Result<::capnp::enum_list::Reader<'a,crate::conmon_capnp::conmon::Namespace>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_namespaces(&self) -> bool {
+ !self.reader.get_pointer_field(1).is_null()
+ }
+ #[inline]
+ pub fn get_uid_mappings(self) -> ::capnp::Result<::capnp::text_list::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(2), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_uid_mappings(&self) -> bool {
+ !self.reader.get_pointer_field(2).is_null()
+ }
+ #[inline]
+ pub fn get_gid_mappings(self) -> ::capnp::Result<::capnp::text_list::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(3), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_gid_mappings(&self) -> bool {
+ !self.reader.get_pointer_field(3).is_null()
+ }
+ #[inline]
+ pub fn get_base_path(self) -> ::capnp::Result<::capnp::text::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(4), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_base_path(&self) -> bool {
+ !self.reader.get_pointer_field(4).is_null()
+ }
+ #[inline]
+ pub fn get_pod_id(self) -> ::capnp::Result<::capnp::text::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(5), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_pod_id(&self) -> bool {
+ !self.reader.get_pointer_field(5).is_null()
+ }
+ #[inline]
+ pub fn get_metadata(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(6), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_metadata(&self) -> bool {
+ !self.reader.get_pointer_field(6).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: 7 };
+ }
+ 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<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_metadata_old(self) -> ::capnp::Result<::capnp::data::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_metadata_old(&mut self, value: ::capnp::data::Reader<'_>) {
+ self.builder.reborrow().get_pointer_field(0).set_data(value);
+ }
+ #[inline]
+ pub fn init_metadata_old(self, size: u32) -> ::capnp::data::Builder<'a> {
+ self.builder.get_pointer_field(0).init_data(size)
+ }
+ #[inline]
+ pub fn has_metadata_old(&self) -> bool {
+ !self.builder.is_pointer_field_null(0)
+ }
+ #[inline]
+ pub fn get_namespaces(self) -> ::capnp::Result<::capnp::enum_list::Builder<'a,crate::conmon_capnp::conmon::Namespace>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_namespaces(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::enum_list::Owned<crate::conmon_capnp::conmon::Namespace>>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false)
+ }
+ #[inline]
+ pub fn init_namespaces(self, size: u32) -> ::capnp::enum_list::Builder<'a,crate::conmon_capnp::conmon::Namespace> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), size)
+ }
+ #[inline]
+ pub fn has_namespaces(&self) -> bool {
+ !self.builder.is_pointer_field_null(1)
+ }
+ #[inline]
+ pub fn get_uid_mappings(self) -> ::capnp::Result<::capnp::text_list::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(2), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_uid_mappings(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text_list::Owned>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(2), value, false)
+ }
+ #[inline]
+ pub fn init_uid_mappings(self, size: u32) -> ::capnp::text_list::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(2), size)
+ }
+ #[inline]
+ pub fn has_uid_mappings(&self) -> bool {
+ !self.builder.is_pointer_field_null(2)
+ }
+ #[inline]
+ pub fn get_gid_mappings(self) -> ::capnp::Result<::capnp::text_list::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(3), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_gid_mappings(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text_list::Owned>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(3), value, false)
+ }
+ #[inline]
+ pub fn init_gid_mappings(self, size: u32) -> ::capnp::text_list::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(3), size)
+ }
+ #[inline]
+ pub fn has_gid_mappings(&self) -> bool {
+ !self.builder.is_pointer_field_null(3)
+ }
+ #[inline]
+ pub fn get_base_path(self) -> ::capnp::Result<::capnp::text::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(4), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_base_path(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text::Owned>) {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(4), value, false).unwrap()
+ }
+ #[inline]
+ pub fn init_base_path(self, size: u32) -> ::capnp::text::Builder<'a> {
+ self.builder.get_pointer_field(4).init_text(size)
+ }
+ #[inline]
+ pub fn has_base_path(&self) -> bool {
+ !self.builder.is_pointer_field_null(4)
+ }
+ #[inline]
+ pub fn get_pod_id(self) -> ::capnp::Result<::capnp::text::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(5), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_pod_id(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text::Owned>) {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(5), value, false).unwrap()
+ }
+ #[inline]
+ pub fn init_pod_id(self, size: u32) -> ::capnp::text::Builder<'a> {
+ self.builder.get_pointer_field(5).init_text(size)
+ }
+ #[inline]
+ pub fn has_pod_id(&self) -> bool {
+ !self.builder.is_pointer_field_null(5)
+ }
+ #[inline]
+ pub fn get_metadata(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(6), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_metadata(&mut self, value: ::capnp::struct_list::Reader<'_,crate::conmon_capnp::conmon::text_text_map_entry::Owned>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(6), value, false)
+ }
+ #[inline]
+ pub fn init_metadata(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(6), size)
+ }
+ #[inline]
+ pub fn has_metadata(&self) -> bool {
+ !self.builder.is_pointer_field_null(6)
+ }
+ }
+
+ 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; 148] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(126, 96, 15, 148, 147, 22, 91, 139),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(241, 51, 102, 221, 153, 232, 55, 183),
+ ::capnp::word(7, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 146, 1, 0, 0),
+ ::capnp::word(45, 0, 0, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(41, 0, 0, 0, 143, 1, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 67, 114, 101, 97, 116, 101),
+ ::capnp::word(78, 97, 109, 101, 115, 112, 97, 99),
+ ::capnp::word(101, 115, 82, 101, 113, 117, 101, 115),
+ ::capnp::word(116, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0),
+ ::capnp::word(28, 0, 0, 0, 3, 0, 4, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(181, 0, 0, 0, 98, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(180, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(192, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(1, 0, 0, 0, 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(189, 0, 0, 0, 90, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(188, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(216, 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(213, 0, 0, 0, 98, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(212, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(240, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(3, 0, 0, 0, 3, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(237, 0, 0, 0, 98, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(236, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(8, 1, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(4, 0, 0, 0, 4, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 4, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(5, 1, 0, 0, 74, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(4, 1, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(16, 1, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(5, 0, 0, 0, 5, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 5, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 1, 0, 0, 50, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(8, 1, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(20, 1, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(6, 0, 0, 0, 6, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 6, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(17, 1, 0, 0, 74, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(16, 1, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(44, 1, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(109, 101, 116, 97, 100, 97, 116, 97),
+ ::capnp::word(79, 108, 100, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(110, 97, 109, 101, 115, 112, 97, 99),
+ ::capnp::word(101, 115, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(163, 243, 168, 96, 181, 145, 20, 214),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(117, 105, 100, 77, 97, 112, 112, 105),
+ ::capnp::word(110, 103, 115, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(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(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(103, 105, 100, 77, 97, 112, 112, 105),
+ ::capnp::word(110, 103, 115, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(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(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(98, 97, 115, 101, 80, 97, 116, 104),
+ ::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(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(112, 111, 100, 73, 100, 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(109, 101, 116, 97, 100, 97, 116, 97),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(146, 211, 74, 109, 222, 253, 187, 250),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ];
+ pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
+ match index {
+ 0 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 1 => <::capnp::enum_list::Owned<crate::conmon_capnp::conmon::Namespace> as ::capnp::introspect::Introspect>::introspect(),
+ 2 => <::capnp::text_list::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 3 => <::capnp::text_list::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 4 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 5 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(),
+ 6 => <::capnp::struct_list::Owned<crate::conmon_capnp::conmon::text_text_map_entry::Owned> as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type {
+ panic!("invalid annotation indices ({:?}, {}) ", child_index, index)
+ }
+ pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema {
+ encoded_node: &ENCODED_NODE,
+ nonunion_members: NONUNION_MEMBERS,
+ members_by_discriminant: MEMBERS_BY_DISCRIMINANT,
+ members_by_name: MEMBERS_BY_NAME,
+ };
+ pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3,4,5,6];
+ pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[];
+ pub static MEMBERS_BY_NAME : &[u16] = &[4,3,6,0,1,5,2];
+ pub const TYPE_ID: u64 = 0x8b5b_1693_940f_607e;
+ }
+ }
+
+ #[repr(u16)]
+ #[derive(Clone, Copy, Debug, PartialEq, Eq)]
+ pub enum Namespace {
+ Ipc = 0,
+ Net = 1,
+ Pid = 2,
+ User = 3,
+ Uts = 4,
+ }
+
+ impl ::capnp::introspect::Introspect for Namespace {
+ fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Enum(::capnp::introspect::RawEnumSchema { encoded_node: &namespace::ENCODED_NODE, annotation_types: namespace::get_annotation_types }).into() }
+ }
+ impl <'a> ::core::convert::From<Namespace> for ::capnp::dynamic_value::Reader<'a> {
+ fn from(e: Namespace) -> Self { ::capnp::dynamic_value::Enum::new(e.into(), ::capnp::introspect::RawEnumSchema { encoded_node: &namespace::ENCODED_NODE, annotation_types: namespace::get_annotation_types }.into()).into() }
+ }
+ impl ::core::convert::TryFrom<u16> for Namespace {
+ type Error = ::capnp::NotInSchema;
+ fn try_from(value: u16) -> ::core::result::Result<Self, <Namespace as ::core::convert::TryFrom<u16>>::Error> {
+ match value {
+ 0 => ::core::result::Result::Ok(Self::Ipc),
+ 1 => ::core::result::Result::Ok(Self::Net),
+ 2 => ::core::result::Result::Ok(Self::Pid),
+ 3 => ::core::result::Result::Ok(Self::User),
+ 4 => ::core::result::Result::Ok(Self::Uts),
+ n => ::core::result::Result::Err(::capnp::NotInSchema(n)),
+ }
+ }
+ }
+ impl From<Namespace> for u16 {
+ #[inline]
+ fn from(x: Namespace) -> u16 { x as u16 }
+ }
+ impl ::capnp::traits::HasTypeId for Namespace {
+ const TYPE_ID: u64 = 0xd614_91b5_60a8_f3a3u64;
+ }
+ mod namespace {
+ pub static ENCODED_NODE: [::capnp::Word; 39] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(163, 243, 168, 96, 181, 145, 20, 214),
+ ::capnp::word(26, 0, 0, 0, 2, 0, 0, 0),
+ ::capnp::word(241, 51, 102, 221, 153, 232, 55, 183),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 34, 1, 0, 0),
+ ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(33, 0, 0, 0, 127, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 78, 97, 109, 101, 115, 112),
+ ::capnp::word(97, 99, 101, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0),
+ ::capnp::word(20, 0, 0, 0, 1, 0, 2, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(53, 0, 0, 0, 34, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(45, 0, 0, 0, 34, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(2, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(37, 0, 0, 0, 34, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(3, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(29, 0, 0, 0, 42, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(4, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 34, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(105, 112, 99, 0, 0, 0, 0, 0),
+ ::capnp::word(110, 101, 116, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 105, 100, 0, 0, 0, 0, 0),
+ ::capnp::word(117, 115, 101, 114, 0, 0, 0, 0),
+ ::capnp::word(117, 116, 115, 0, 0, 0, 0, 0),
+ ];
+ pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type {
+ panic!("invalid annotation indices ({:?}, {}) ", child_index, index)
+ }
+ }
+
+ pub mod create_namespaces_response {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_namespaces(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::conmon_capnp::conmon::namespace_response::Owned>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_namespaces(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_namespaces(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::namespace_response::Owned>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_namespaces(&mut self, value: ::capnp::struct_list::Reader<'_,crate::conmon_capnp::conmon::namespace_response::Owned>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false)
+ }
+ #[inline]
+ pub fn init_namespaces(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::namespace_response::Owned> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), size)
+ }
+ #[inline]
+ pub fn has_namespaces(&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; 41] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(203, 30, 122, 87, 15, 166, 135, 152),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(241, 51, 102, 221, 153, 232, 55, 183),
+ ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 154, 1, 0, 0),
+ ::capnp::word(45, 0, 0, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(41, 0, 0, 0, 63, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 67, 114, 101, 97, 116, 101),
+ ::capnp::word(78, 97, 109, 101, 115, 112, 97, 99),
+ ::capnp::word(101, 115, 82, 101, 115, 112, 111, 110),
+ ::capnp::word(115, 101, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0),
+ ::capnp::word(4, 0, 0, 0, 3, 0, 4, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 90, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(12, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(40, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(110, 97, 109, 101, 115, 112, 97, 99),
+ ::capnp::word(101, 115, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(22, 250, 227, 164, 214, 83, 56, 169),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ];
+ pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
+ match index {
+ 0 => <::capnp::struct_list::Owned<crate::conmon_capnp::conmon::namespace_response::Owned> as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, 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 = 0x9887_a60f_577a_1ecb;
+ }
+ }
+
+ pub mod namespace_response {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_type(self) -> ::core::result::Result<crate::conmon_capnp::conmon::Namespace,::capnp::NotInSchema> {
+ ::core::convert::TryInto::try_into(self.reader.get_data_field::<u16>(0))
+ }
+ #[inline]
+ pub fn get_path(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_path(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_type(self) -> ::core::result::Result<crate::conmon_capnp::conmon::Namespace,::capnp::NotInSchema> {
+ ::core::convert::TryInto::try_into(self.builder.get_data_field::<u16>(0))
+ }
+ #[inline]
+ pub fn set_type(&mut self, value: crate::conmon_capnp::conmon::Namespace) {
+ self.builder.set_data_field::<u16>(0, value as u16);
+ }
+ #[inline]
+ pub fn get_path(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_path(&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_path(self, size: u32) -> ::capnp::text::Builder<'a> {
+ self.builder.get_pointer_field(0).init_text(size)
+ }
+ #[inline]
+ pub fn has_path(&self) -> bool {
+ !self.builder.is_pointer_field_null(0)
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 50] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(22, 250, 227, 164, 214, 83, 56, 169),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 1, 0),
+ ::capnp::word(241, 51, 102, 221, 153, 232, 55, 183),
+ ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 98, 1, 0, 0),
+ ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(37, 0, 0, 0, 119, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 78, 97, 109, 101, 115, 112),
+ ::capnp::word(97, 99, 101, 82, 101, 115, 112, 111),
+ ::capnp::word(110, 115, 101, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0),
+ ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(41, 0, 0, 0, 42, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(36, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(48, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(45, 0, 0, 0, 42, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(40, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(52, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(116, 121, 112, 101, 0, 0, 0, 0),
+ ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(163, 243, 168, 96, 181, 145, 20, 214),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(15, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 97, 116, 104, 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 => <crate::conmon_capnp::conmon::Namespace as ::capnp::introspect::Introspect>::introspect(),
+ 1 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type {
+ panic!("invalid annotation indices ({:?}, {}) ", child_index, index)
+ }
+ pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema {
+ encoded_node: &ENCODED_NODE,
+ nonunion_members: NONUNION_MEMBERS,
+ members_by_discriminant: MEMBERS_BY_DISCRIMINANT,
+ members_by_name: MEMBERS_BY_NAME,
+ };
+ pub static NONUNION_MEMBERS : &[u16] = &[0,1];
+ pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[];
+ pub static MEMBERS_BY_NAME : &[u16] = &[1,0];
+ pub const TYPE_ID: u64 = 0xa938_53d6_a4e3_fa16;
+ }
+ }
+
+ pub mod start_fd_socket_request {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_metadata(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_metadata(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_metadata(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_metadata(&mut self, value: ::capnp::struct_list::Reader<'_,crate::conmon_capnp::conmon::text_text_map_entry::Owned>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false)
+ }
+ #[inline]
+ pub fn init_metadata(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::conmon_capnp::conmon::text_text_map_entry::Owned> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), size)
+ }
+ #[inline]
+ pub fn has_metadata(&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; 40] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(41, 236, 136, 166, 135, 171, 83, 186),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(241, 51, 102, 221, 153, 232, 55, 183),
+ ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 122, 1, 0, 0),
+ ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(37, 0, 0, 0, 63, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 83, 116, 97, 114, 116, 70),
+ ::capnp::word(100, 83, 111, 99, 107, 101, 116, 82),
+ ::capnp::word(101, 113, 117, 101, 115, 116, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0),
+ ::capnp::word(4, 0, 0, 0, 3, 0, 4, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 74, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(12, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(40, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(109, 101, 116, 97, 100, 97, 116, 97),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(146, 211, 74, 109, 222, 253, 187, 250),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ];
+ pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
+ match index {
+ 0 => <::capnp::struct_list::Owned<crate::conmon_capnp::conmon::text_text_map_entry::Owned> as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, 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 = 0xba53_ab87_a688_ec29;
+ }
+ }
+
+ pub mod start_fd_socket_response {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_path(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_path(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_path(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_path(&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_path(self, size: u32) -> ::capnp::text::Builder<'a> {
+ self.builder.get_pointer_field(0).init_text(size)
+ }
+ #[inline]
+ pub fn has_path(&self) -> bool {
+ !self.builder.is_pointer_field_null(0)
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 35] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(3, 224, 228, 10, 142, 65, 47, 182),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(241, 51, 102, 221, 153, 232, 55, 183),
+ ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 130, 1, 0, 0),
+ ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(37, 0, 0, 0, 63, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 83, 116, 97, 114, 116, 70),
+ ::capnp::word(100, 83, 111, 99, 107, 101, 116, 82),
+ ::capnp::word(101, 115, 112, 111, 110, 115, 101, 0),
+ ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0),
+ ::capnp::word(4, 0, 0, 0, 3, 0, 4, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 42, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(8, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(20, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(112, 97, 116, 104, 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<u16>, 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 = 0xb62f_418e_0ae4_e003;
+ }
+ }
+
+ pub mod text_text_map_entry {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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::text::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<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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::text::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: 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_value(self, size: u32) -> ::capnp::text::Builder<'a> {
+ self.builder.get_pointer_field(1).init_text(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; 50] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(146, 211, 74, 109, 222, 253, 187, 250),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(241, 51, 102, 221, 153, 232, 55, 183),
+ ::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, 90, 1, 0, 0),
+ ::capnp::word(41, 0, 0, 0, 7, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(37, 0, 0, 0, 119, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 84, 101, 120, 116, 84, 101),
+ ::capnp::word(120, 116, 77, 97, 112, 69, 110, 116),
+ ::capnp::word(114, 121, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0),
+ ::capnp::word(8, 0, 0, 0, 3, 0, 4, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(41, 0, 0, 0, 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, 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(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(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(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, 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 = 0xfabb_fdde_6d4a_d392;
+ }
+ }
+
+ pub mod version_params {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_request(self) -> ::capnp::Result<crate::conmon_capnp::conmon::version_request::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_request(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_request(self) -> ::capnp::Result<crate::conmon_capnp::conmon::version_request::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_request(&mut self, value: crate::conmon_capnp::conmon::version_request::Reader<'_>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false)
+ }
+ #[inline]
+ pub fn init_request(self, ) -> crate::conmon_capnp::conmon::version_request::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0)
+ }
+ #[inline]
+ pub fn has_request(&self) -> bool {
+ !self.builder.is_pointer_field_null(0)
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ pub fn get_request(&self) -> crate::conmon_capnp::conmon::version_request::Pipeline {
+ ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0))
+ }
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 34] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(231, 228, 254, 106, 103, 112, 47, 204),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 74, 1, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(33, 0, 0, 0, 63, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 118, 101, 114, 115, 105, 111),
+ ::capnp::word(110, 36, 80, 97, 114, 97, 109, 115),
+ ::capnp::word(0, 0, 0, 0, 0, 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, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 66, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(8, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(20, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(114, 101, 113, 117, 101, 115, 116, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(19, 68, 48, 185, 214, 51, 42, 173),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ];
+ pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
+ match index {
+ 0 => <crate::conmon_capnp::conmon::version_request::Owned as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, 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 = 0xcc2f_7067_6afe_e4e7;
+ }
+ }
+
+ pub mod version_results {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_response(self) -> ::capnp::Result<crate::conmon_capnp::conmon::version_response::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_response(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_response(self) -> ::capnp::Result<crate::conmon_capnp::conmon::version_response::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_response(&mut self, value: crate::conmon_capnp::conmon::version_response::Reader<'_>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false)
+ }
+ #[inline]
+ pub fn init_response(self, ) -> crate::conmon_capnp::conmon::version_response::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0)
+ }
+ #[inline]
+ pub fn has_response(&self) -> bool {
+ !self.builder.is_pointer_field_null(0)
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ pub fn get_response(&self) -> crate::conmon_capnp::conmon::version_response::Pipeline {
+ ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0))
+ }
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 35] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(48, 123, 71, 169, 94, 105, 19, 227),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 82, 1, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(33, 0, 0, 0, 63, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 118, 101, 114, 115, 105, 111),
+ ::capnp::word(110, 36, 82, 101, 115, 117, 108, 116),
+ ::capnp::word(115, 0, 0, 0, 0, 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, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 74, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(12, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(24, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(114, 101, 115, 112, 111, 110, 115, 101),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(209, 238, 31, 172, 203, 229, 75, 243),
+ ::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 => <crate::conmon_capnp::conmon::version_response::Owned as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, 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 = 0xe313_695e_a947_7b30;
+ }
+ }
+
+ pub mod create_container_params {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_request(self) -> ::capnp::Result<crate::conmon_capnp::conmon::create_container_request::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_request(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_request(self) -> ::capnp::Result<crate::conmon_capnp::conmon::create_container_request::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_request(&mut self, value: crate::conmon_capnp::conmon::create_container_request::Reader<'_>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false)
+ }
+ #[inline]
+ pub fn init_request(self, ) -> crate::conmon_capnp::conmon::create_container_request::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0)
+ }
+ #[inline]
+ pub fn has_request(&self) -> bool {
+ !self.builder.is_pointer_field_null(0)
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ pub fn get_request(&self) -> crate::conmon_capnp::conmon::create_container_request::Pipeline {
+ ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0))
+ }
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 35] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(184, 154, 148, 143, 196, 50, 71, 244),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 138, 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(37, 0, 0, 0, 63, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 99, 114, 101, 97, 116, 101),
+ ::capnp::word(67, 111, 110, 116, 97, 105, 110, 101),
+ ::capnp::word(114, 36, 80, 97, 114, 97, 109, 115),
+ ::capnp::word(0, 0, 0, 0, 0, 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, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 66, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(8, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(20, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(114, 101, 113, 117, 101, 115, 116, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(202, 182, 169, 58, 250, 227, 119, 186),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ];
+ pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
+ match index {
+ 0 => <crate::conmon_capnp::conmon::create_container_request::Owned as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, 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 = 0xf447_32c4_8f94_9ab8;
+ }
+ }
+
+ pub mod create_container_results {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_response(self) -> ::capnp::Result<crate::conmon_capnp::conmon::create_container_response::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_response(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_response(self) -> ::capnp::Result<crate::conmon_capnp::conmon::create_container_response::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_response(&mut self, value: crate::conmon_capnp::conmon::create_container_response::Reader<'_>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false)
+ }
+ #[inline]
+ pub fn init_response(self, ) -> crate::conmon_capnp::conmon::create_container_response::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0)
+ }
+ #[inline]
+ pub fn has_response(&self) -> bool {
+ !self.builder.is_pointer_field_null(0)
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ pub fn get_response(&self) -> crate::conmon_capnp::conmon::create_container_response::Pipeline {
+ ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0))
+ }
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 36] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(248, 21, 190, 151, 26, 60, 186, 206),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 146, 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(37, 0, 0, 0, 63, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 99, 114, 101, 97, 116, 101),
+ ::capnp::word(67, 111, 110, 116, 97, 105, 110, 101),
+ ::capnp::word(114, 36, 82, 101, 115, 117, 108, 116),
+ ::capnp::word(115, 0, 0, 0, 0, 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, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 74, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(12, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(24, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(114, 101, 115, 112, 111, 110, 115, 101),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(154, 43, 119, 112, 94, 98, 58, 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 => <crate::conmon_capnp::conmon::create_container_response::Owned as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, 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 = 0xceba_3c1a_97be_15f8;
+ }
+ }
+
+ pub mod exec_sync_container_params {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_request(self) -> ::capnp::Result<crate::conmon_capnp::conmon::exec_sync_container_request::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_request(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_request(self) -> ::capnp::Result<crate::conmon_capnp::conmon::exec_sync_container_request::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_request(&mut self, value: crate::conmon_capnp::conmon::exec_sync_container_request::Reader<'_>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false)
+ }
+ #[inline]
+ pub fn init_request(self, ) -> crate::conmon_capnp::conmon::exec_sync_container_request::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0)
+ }
+ #[inline]
+ pub fn has_request(&self) -> bool {
+ !self.builder.is_pointer_field_null(0)
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ pub fn get_request(&self) -> crate::conmon_capnp::conmon::exec_sync_container_request::Pipeline {
+ ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0))
+ }
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 35] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(115, 225, 121, 114, 166, 157, 71, 131),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 154, 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(37, 0, 0, 0, 63, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 101, 120, 101, 99, 83, 121),
+ ::capnp::word(110, 99, 67, 111, 110, 116, 97, 105),
+ ::capnp::word(110, 101, 114, 36, 80, 97, 114, 97),
+ ::capnp::word(109, 115, 0, 0, 0, 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, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 66, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(8, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(20, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(114, 101, 113, 117, 101, 115, 116, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(166, 113, 163, 144, 248, 34, 17, 244),
+ ::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 => <crate::conmon_capnp::conmon::exec_sync_container_request::Owned as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, 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 = 0x8347_9da6_7279_e173;
+ }
+ }
+
+ pub mod exec_sync_container_results {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_response(self) -> ::capnp::Result<crate::conmon_capnp::conmon::exec_sync_container_response::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_response(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_response(self) -> ::capnp::Result<crate::conmon_capnp::conmon::exec_sync_container_response::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_response(&mut self, value: crate::conmon_capnp::conmon::exec_sync_container_response::Reader<'_>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false)
+ }
+ #[inline]
+ pub fn init_response(self, ) -> crate::conmon_capnp::conmon::exec_sync_container_response::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0)
+ }
+ #[inline]
+ pub fn has_response(&self) -> bool {
+ !self.builder.is_pointer_field_null(0)
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ pub fn get_response(&self) -> crate::conmon_capnp::conmon::exec_sync_container_response::Pipeline {
+ ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0))
+ }
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 36] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(188, 1, 170, 11, 92, 106, 232, 248),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 162, 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(37, 0, 0, 0, 63, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 101, 120, 101, 99, 83, 121),
+ ::capnp::word(110, 99, 67, 111, 110, 116, 97, 105),
+ ::capnp::word(110, 101, 114, 36, 82, 101, 115, 117),
+ ::capnp::word(108, 116, 115, 0, 0, 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, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 74, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(12, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(24, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(114, 101, 115, 112, 111, 110, 115, 101),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(252, 133, 60, 128, 29, 29, 214, 217),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ];
+ pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
+ match index {
+ 0 => <crate::conmon_capnp::conmon::exec_sync_container_response::Owned as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, 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 = 0xf8e8_6a5c_0baa_01bc;
+ }
+ }
+
+ pub mod attach_container_params {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_request(self) -> ::capnp::Result<crate::conmon_capnp::conmon::attach_request::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_request(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_request(self) -> ::capnp::Result<crate::conmon_capnp::conmon::attach_request::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_request(&mut self, value: crate::conmon_capnp::conmon::attach_request::Reader<'_>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false)
+ }
+ #[inline]
+ pub fn init_request(self, ) -> crate::conmon_capnp::conmon::attach_request::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0)
+ }
+ #[inline]
+ pub fn has_request(&self) -> bool {
+ !self.builder.is_pointer_field_null(0)
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ pub fn get_request(&self) -> crate::conmon_capnp::conmon::attach_request::Pipeline {
+ ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0))
+ }
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 35] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(36, 175, 195, 209, 138, 60, 47, 170),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 138, 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(37, 0, 0, 0, 63, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 97, 116, 116, 97, 99, 104),
+ ::capnp::word(67, 111, 110, 116, 97, 105, 110, 101),
+ ::capnp::word(114, 36, 80, 97, 114, 97, 109, 115),
+ ::capnp::word(0, 0, 0, 0, 0, 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, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 66, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(8, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(20, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(114, 101, 113, 117, 101, 115, 116, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(252, 58, 252, 190, 160, 60, 112, 223),
+ ::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 => <crate::conmon_capnp::conmon::attach_request::Owned as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, 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 = 0xaa2f_3c8a_d1c3_af24;
+ }
+ }
+
+ pub mod attach_container_results {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_response(self) -> ::capnp::Result<crate::conmon_capnp::conmon::attach_response::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_response(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_response(self) -> ::capnp::Result<crate::conmon_capnp::conmon::attach_response::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_response(&mut self, value: crate::conmon_capnp::conmon::attach_response::Reader<'_>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false)
+ }
+ #[inline]
+ pub fn init_response(self, ) -> crate::conmon_capnp::conmon::attach_response::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0)
+ }
+ #[inline]
+ pub fn has_response(&self) -> bool {
+ !self.builder.is_pointer_field_null(0)
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ pub fn get_response(&self) -> crate::conmon_capnp::conmon::attach_response::Pipeline {
+ ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0))
+ }
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 36] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(16, 91, 207, 61, 236, 94, 230, 197),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 146, 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(37, 0, 0, 0, 63, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 97, 116, 116, 97, 99, 104),
+ ::capnp::word(67, 111, 110, 116, 97, 105, 110, 101),
+ ::capnp::word(114, 36, 82, 101, 115, 117, 108, 116),
+ ::capnp::word(115, 0, 0, 0, 0, 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, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 74, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(12, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(24, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(114, 101, 115, 112, 111, 110, 115, 101),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(119, 96, 200, 175, 122, 81, 229, 172),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ];
+ pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
+ match index {
+ 0 => <crate::conmon_capnp::conmon::attach_response::Owned as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, 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 = 0xc5e6_5eec_3dcf_5b10;
+ }
+ }
+
+ pub mod reopen_log_container_params {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_request(self) -> ::capnp::Result<crate::conmon_capnp::conmon::reopen_log_request::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_request(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_request(self) -> ::capnp::Result<crate::conmon_capnp::conmon::reopen_log_request::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_request(&mut self, value: crate::conmon_capnp::conmon::reopen_log_request::Reader<'_>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false)
+ }
+ #[inline]
+ pub fn init_request(self, ) -> crate::conmon_capnp::conmon::reopen_log_request::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0)
+ }
+ #[inline]
+ pub fn has_request(&self) -> bool {
+ !self.builder.is_pointer_field_null(0)
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ pub fn get_request(&self) -> crate::conmon_capnp::conmon::reopen_log_request::Pipeline {
+ ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0))
+ }
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 35] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(54, 19, 195, 176, 110, 145, 234, 229),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 162, 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(37, 0, 0, 0, 63, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 114, 101, 111, 112, 101, 110),
+ ::capnp::word(76, 111, 103, 67, 111, 110, 116, 97),
+ ::capnp::word(105, 110, 101, 114, 36, 80, 97, 114),
+ ::capnp::word(97, 109, 115, 0, 0, 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, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 66, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(8, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(20, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(114, 101, 113, 117, 101, 115, 116, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(26, 65, 209, 52, 15, 110, 71, 208),
+ ::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 => <crate::conmon_capnp::conmon::reopen_log_request::Owned as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, 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 = 0xe5ea_916e_b0c3_1336;
+ }
+ }
+
+ pub mod reopen_log_container_results {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_response(self) -> ::capnp::Result<crate::conmon_capnp::conmon::reopen_log_response::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_response(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_response(self) -> ::capnp::Result<crate::conmon_capnp::conmon::reopen_log_response::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_response(&mut self, value: crate::conmon_capnp::conmon::reopen_log_response::Reader<'_>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false)
+ }
+ #[inline]
+ pub fn init_response(self, ) -> crate::conmon_capnp::conmon::reopen_log_response::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0)
+ }
+ #[inline]
+ pub fn has_response(&self) -> bool {
+ !self.builder.is_pointer_field_null(0)
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ pub fn get_response(&self) -> crate::conmon_capnp::conmon::reopen_log_response::Pipeline {
+ ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0))
+ }
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 36] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(133, 233, 78, 182, 85, 131, 239, 160),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 170, 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(37, 0, 0, 0, 63, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 114, 101, 111, 112, 101, 110),
+ ::capnp::word(76, 111, 103, 67, 111, 110, 116, 97),
+ ::capnp::word(105, 110, 101, 114, 36, 82, 101, 115),
+ ::capnp::word(117, 108, 116, 115, 0, 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, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 74, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(12, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(24, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(114, 101, 115, 112, 111, 110, 115, 101),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(153, 91, 232, 107, 69, 73, 15, 162),
+ ::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 => <crate::conmon_capnp::conmon::reopen_log_response::Owned as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, 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 = 0xa0ef_8355_b64e_e985;
+ }
+ }
+
+ pub mod set_window_size_container_params {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_request(self) -> ::capnp::Result<crate::conmon_capnp::conmon::set_window_size_request::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_request(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_request(self) -> ::capnp::Result<crate::conmon_capnp::conmon::set_window_size_request::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_request(&mut self, value: crate::conmon_capnp::conmon::set_window_size_request::Reader<'_>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false)
+ }
+ #[inline]
+ pub fn init_request(self, ) -> crate::conmon_capnp::conmon::set_window_size_request::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0)
+ }
+ #[inline]
+ pub fn has_request(&self) -> bool {
+ !self.builder.is_pointer_field_null(0)
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ pub fn get_request(&self) -> crate::conmon_capnp::conmon::set_window_size_request::Pipeline {
+ ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0))
+ }
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 35] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(231, 97, 187, 2, 69, 205, 108, 199),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 194, 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(37, 0, 0, 0, 63, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 115, 101, 116, 87, 105, 110),
+ ::capnp::word(100, 111, 119, 83, 105, 122, 101, 67),
+ ::capnp::word(111, 110, 116, 97, 105, 110, 101, 114),
+ ::capnp::word(36, 80, 97, 114, 97, 109, 115, 0),
+ ::capnp::word(4, 0, 0, 0, 3, 0, 4, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 66, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(8, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(20, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(114, 101, 113, 117, 101, 115, 116, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(123, 209, 234, 168, 142, 139, 65, 181),
+ ::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 => <crate::conmon_capnp::conmon::set_window_size_request::Owned as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, 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 = 0xc76c_cd45_02bb_61e7;
+ }
+ }
+
+ pub mod set_window_size_container_results {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_response(self) -> ::capnp::Result<crate::conmon_capnp::conmon::set_window_size_response::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_response(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_response(self) -> ::capnp::Result<crate::conmon_capnp::conmon::set_window_size_response::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_response(&mut self, value: crate::conmon_capnp::conmon::set_window_size_response::Reader<'_>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false)
+ }
+ #[inline]
+ pub fn init_response(self, ) -> crate::conmon_capnp::conmon::set_window_size_response::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0)
+ }
+ #[inline]
+ pub fn has_response(&self) -> bool {
+ !self.builder.is_pointer_field_null(0)
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ pub fn get_response(&self) -> crate::conmon_capnp::conmon::set_window_size_response::Pipeline {
+ ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0))
+ }
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 37] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(85, 112, 71, 17, 38, 82, 14, 224),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 202, 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(41, 0, 0, 0, 63, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 115, 101, 116, 87, 105, 110),
+ ::capnp::word(100, 111, 119, 83, 105, 122, 101, 67),
+ ::capnp::word(111, 110, 116, 97, 105, 110, 101, 114),
+ ::capnp::word(36, 82, 101, 115, 117, 108, 116, 115),
+ ::capnp::word(0, 0, 0, 0, 0, 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, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 74, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(12, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(24, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(114, 101, 115, 112, 111, 110, 115, 101),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(248, 161, 171, 51, 128, 205, 179, 249),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ];
+ pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
+ match index {
+ 0 => <crate::conmon_capnp::conmon::set_window_size_response::Owned as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, 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 = 0xe00e_5226_1147_7055;
+ }
+ }
+
+ pub mod create_namespaces_params {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_request(self) -> ::capnp::Result<crate::conmon_capnp::conmon::create_namespaces_request::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_request(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_request(self) -> ::capnp::Result<crate::conmon_capnp::conmon::create_namespaces_request::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_request(&mut self, value: crate::conmon_capnp::conmon::create_namespaces_request::Reader<'_>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false)
+ }
+ #[inline]
+ pub fn init_request(self, ) -> crate::conmon_capnp::conmon::create_namespaces_request::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0)
+ }
+ #[inline]
+ pub fn has_request(&self) -> bool {
+ !self.builder.is_pointer_field_null(0)
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ pub fn get_request(&self) -> crate::conmon_capnp::conmon::create_namespaces_request::Pipeline {
+ ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0))
+ }
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 35] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(220, 56, 42, 102, 160, 3, 76, 139),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 146, 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(37, 0, 0, 0, 63, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 99, 114, 101, 97, 116, 101),
+ ::capnp::word(78, 97, 109, 101, 115, 112, 97, 99),
+ ::capnp::word(101, 115, 36, 80, 97, 114, 97, 109),
+ ::capnp::word(115, 0, 0, 0, 0, 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, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 66, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(8, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(20, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(114, 101, 113, 117, 101, 115, 116, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(126, 96, 15, 148, 147, 22, 91, 139),
+ ::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 => <crate::conmon_capnp::conmon::create_namespaces_request::Owned as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, 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 = 0x8b4c_03a0_662a_38dc;
+ }
+ }
+
+ pub mod create_namespaces_results {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_response(self) -> ::capnp::Result<crate::conmon_capnp::conmon::create_namespaces_response::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_response(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_response(self) -> ::capnp::Result<crate::conmon_capnp::conmon::create_namespaces_response::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_response(&mut self, value: crate::conmon_capnp::conmon::create_namespaces_response::Reader<'_>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false)
+ }
+ #[inline]
+ pub fn init_response(self, ) -> crate::conmon_capnp::conmon::create_namespaces_response::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0)
+ }
+ #[inline]
+ pub fn has_response(&self) -> bool {
+ !self.builder.is_pointer_field_null(0)
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ pub fn get_response(&self) -> crate::conmon_capnp::conmon::create_namespaces_response::Pipeline {
+ ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0))
+ }
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 36] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(245, 164, 200, 61, 151, 145, 239, 138),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 154, 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(37, 0, 0, 0, 63, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 99, 114, 101, 97, 116, 101),
+ ::capnp::word(78, 97, 109, 101, 115, 112, 97, 99),
+ ::capnp::word(101, 115, 36, 82, 101, 115, 117, 108),
+ ::capnp::word(116, 115, 0, 0, 0, 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, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 74, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(12, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(24, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(114, 101, 115, 112, 111, 110, 115, 101),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(203, 30, 122, 87, 15, 166, 135, 152),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ];
+ pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
+ match index {
+ 0 => <crate::conmon_capnp::conmon::create_namespaces_response::Owned as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, 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 = 0x8aef_9197_3dc8_a4f5;
+ }
+ }
+
+ pub mod start_fd_socket_params {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_request(self) -> ::capnp::Result<crate::conmon_capnp::conmon::start_fd_socket_request::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_request(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_request(self) -> ::capnp::Result<crate::conmon_capnp::conmon::start_fd_socket_request::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_request(&mut self, value: crate::conmon_capnp::conmon::start_fd_socket_request::Reader<'_>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false)
+ }
+ #[inline]
+ pub fn init_request(self, ) -> crate::conmon_capnp::conmon::start_fd_socket_request::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0)
+ }
+ #[inline]
+ pub fn has_request(&self) -> bool {
+ !self.builder.is_pointer_field_null(0)
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ pub fn get_request(&self) -> crate::conmon_capnp::conmon::start_fd_socket_request::Pipeline {
+ ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0))
+ }
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 34] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(107, 11, 200, 20, 9, 63, 115, 206),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 122, 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(33, 0, 0, 0, 63, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 115, 116, 97, 114, 116, 70),
+ ::capnp::word(100, 83, 111, 99, 107, 101, 116, 36),
+ ::capnp::word(80, 97, 114, 97, 109, 115, 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, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 66, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(8, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(20, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(114, 101, 113, 117, 101, 115, 116, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(41, 236, 136, 166, 135, 171, 83, 186),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ];
+ pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
+ match index {
+ 0 => <crate::conmon_capnp::conmon::start_fd_socket_request::Owned as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, 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 = 0xce73_3f09_14c8_0b6b;
+ }
+ }
+
+ pub mod start_fd_socket_results {
+ #[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<Reader<'a,>> 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<Self> {
+ ::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_response(self) -> ::capnp::Result<crate::conmon_capnp::conmon::start_fd_socket_response::Reader<'a>> {
+ ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn has_response(&self) -> bool {
+ !self.reader.get_pointer_field(0).is_null()
+ }
+ }
+
+ pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
+ impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
+ const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 1 };
+ }
+ impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
+ const TYPE_ID: u64 = _private::TYPE_ID;
+ }
+ impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
+ fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
+ Self { builder, }
+ }
+ }
+
+ impl <'a,> ::core::convert::From<Builder<'a,>> 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(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
+ }
+ fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
+ ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
+ }
+ }
+
+ impl <'a,> ::capnp::traits::SetterInput<Owned<>> 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_response(self) -> ::capnp::Result<crate::conmon_capnp::conmon::start_fd_socket_response::Builder<'a>> {
+ ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
+ }
+ #[inline]
+ pub fn set_response(&mut self, value: crate::conmon_capnp::conmon::start_fd_socket_response::Reader<'_>) -> ::capnp::Result<()> {
+ ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false)
+ }
+ #[inline]
+ pub fn init_response(self, ) -> crate::conmon_capnp::conmon::start_fd_socket_response::Builder<'a> {
+ ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), 0)
+ }
+ #[inline]
+ pub fn has_response(&self) -> bool {
+ !self.builder.is_pointer_field_null(0)
+ }
+ }
+
+ pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
+ impl ::capnp::capability::FromTypelessPipeline for Pipeline {
+ fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
+ Self { _typeless: typeless, }
+ }
+ }
+ impl Pipeline {
+ pub fn get_response(&self) -> crate::conmon_capnp::conmon::start_fd_socket_response::Pipeline {
+ ::capnp::capability::FromTypelessPipeline::new(self._typeless.get_pointer_field(0))
+ }
+ }
+ mod _private {
+ pub static ENCODED_NODE: [::capnp::Word; 35] = [
+ ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
+ ::capnp::word(21, 95, 129, 224, 42, 233, 227, 244),
+ ::capnp::word(26, 0, 0, 0, 1, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(1, 0, 7, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(21, 0, 0, 0, 130, 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(33, 0, 0, 0, 63, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(112, 114, 111, 116, 111, 47, 99, 111),
+ ::capnp::word(110, 109, 111, 110, 46, 99, 97, 112),
+ ::capnp::word(110, 112, 58, 67, 111, 110, 109, 111),
+ ::capnp::word(110, 46, 115, 116, 97, 114, 116, 70),
+ ::capnp::word(100, 83, 111, 99, 107, 101, 116, 36),
+ ::capnp::word(82, 101, 115, 117, 108, 116, 115, 0),
+ ::capnp::word(4, 0, 0, 0, 3, 0, 4, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(13, 0, 0, 0, 74, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(12, 0, 0, 0, 3, 0, 1, 0),
+ ::capnp::word(24, 0, 0, 0, 2, 0, 1, 0),
+ ::capnp::word(114, 101, 115, 112, 111, 110, 115, 101),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(3, 224, 228, 10, 142, 65, 47, 182),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
+ ];
+ pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
+ match index {
+ 0 => <crate::conmon_capnp::conmon::start_fd_socket_response::Owned as ::capnp::introspect::Introspect>::introspect(),
+ _ => panic!("invalid field index {}", index),
+ }
+ }
+ pub fn get_annotation_types(child_index: Option<u16>, 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 = 0xf4e3_e92a_e081_5f15;
+ }
+ }
+}
+