[INFO] crate dbus-codegen 0.3.0 is already in cache
[INFO] extracting crate dbus-codegen 0.3.0 into work/ex/beta-1.37-6/sources/1.36.0/reg/dbus-codegen/0.3.0
[INFO] extracting crate dbus-codegen 0.3.0 into work/ex/beta-1.37-6/sources/beta-2019-07-23/reg/dbus-codegen/0.3.0
[INFO] validating manifest of dbus-codegen-0.3.0 on toolchain 1.36.0
[INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.36.0" "read-manifest" "--manifest-path" "Cargo.toml"`
[INFO] validating manifest of dbus-codegen-0.3.0 on toolchain beta-2019-07-23
[INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-07-23" "read-manifest" "--manifest-path" "Cargo.toml"`
[INFO] started frobbing dbus-codegen-0.3.0
[INFO] finished frobbing dbus-codegen-0.3.0
[INFO] frobbed toml for dbus-codegen-0.3.0 written to work/ex/beta-1.37-6/sources/1.36.0/reg/dbus-codegen/0.3.0/Cargo.toml
[INFO] started frobbing dbus-codegen-0.3.0
[INFO] finished frobbing dbus-codegen-0.3.0
[INFO] frobbed toml for dbus-codegen-0.3.0 written to work/ex/beta-1.37-6/sources/beta-2019-07-23/reg/dbus-codegen/0.3.0/Cargo.toml
[INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.36.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"`
[INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-07-23" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"`
[INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.36.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"`
[INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-07-23" "fetch" "--locked" "--manifest-path" "Cargo.toml"`
[INFO] testing dbus-codegen-0.3.0 against 1.36.0 for beta-1.37-6
[INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.37-6/worker-0/1.36.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.37-6/sources/1.36.0/reg/dbus-codegen/0.3.0:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+1.36.0" "build" "--frozen"`
[INFO] [stdout] 6cb68fbf5618b63048d65ffabe3f98182bb0ce37d238c299bd3bac6ec7fcb158
[INFO] running `"docker" "start" "-a" "6cb68fbf5618b63048d65ffabe3f98182bb0ce37d238c299bd3bac6ec7fcb158"`
[INFO] [stderr]    Compiling dbus-codegen v0.3.0 (/opt/crater/workdir)
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 5.93s
[INFO] running `"docker" "inspect" "6cb68fbf5618b63048d65ffabe3f98182bb0ce37d238c299bd3bac6ec7fcb158"`
[INFO] running `"docker" "rm" "-f" "6cb68fbf5618b63048d65ffabe3f98182bb0ce37d238c299bd3bac6ec7fcb158"`
[INFO] [stdout] 6cb68fbf5618b63048d65ffabe3f98182bb0ce37d238c299bd3bac6ec7fcb158
[INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.37-6/worker-0/1.36.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.37-6/sources/1.36.0/reg/dbus-codegen/0.3.0:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+1.36.0" "test" "--frozen" "--no-run"`
[INFO] [stdout] afa60aca6dbec9cf31d8b4840ad7c56f8603bf947b8e0baf7bee96ef33b72b01
[INFO] running `"docker" "start" "-a" "afa60aca6dbec9cf31d8b4840ad7c56f8603bf947b8e0baf7bee96ef33b72b01"`
[INFO] [stderr]    Compiling dbus-codegen v0.3.0 (/opt/crater/workdir)
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 7.78s
[INFO] running `"docker" "inspect" "afa60aca6dbec9cf31d8b4840ad7c56f8603bf947b8e0baf7bee96ef33b72b01"`
[INFO] running `"docker" "rm" "-f" "afa60aca6dbec9cf31d8b4840ad7c56f8603bf947b8e0baf7bee96ef33b72b01"`
[INFO] [stdout] afa60aca6dbec9cf31d8b4840ad7c56f8603bf947b8e0baf7bee96ef33b72b01
[INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.37-6/worker-0/1.36.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.37-6/sources/1.36.0/reg/dbus-codegen/0.3.0:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+1.36.0" "test" "--frozen"`
[INFO] [stdout] a6417b513aa47e8dfea399b3af3c0e0ef8071c408c5aec64f675dd2adf116b7b
[INFO] running `"docker" "start" "-a" "a6417b513aa47e8dfea399b3af3c0e0ef8071c408c5aec64f675dd2adf116b7b"`
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 0.03s
[INFO] [stderr]      Running /opt/crater/target/debug/deps/dbus_codegen-478ece07871a91d3
[INFO] [stdout] 
[INFO] [stdout] running 3 tests
[INFO] [stdout] test generate::tests::from_dbus ... ok
[INFO] [stdout] test generate::tests::from_policykit ... FAILED
[INFO] [stdout] test generate::tests::from_policykit_asref_generic ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- generate::tests::from_policykit stdout ----
[INFO] [stdout] // This code was autogenerated with dbus-codegen-rust, see https://github.com/diwic/dbus-rs
[INFO] [stdout] 
[INFO] [stdout] #![allow(dead_code)]
[INFO] [stdout] use dbus as dbus;
[INFO] [stdout] use dbus::arg;
[INFO] [stdout] use dbus::tree;
[INFO] [stdout] 
[INFO] [stdout] pub trait OrgFreedesktopDBusProperties {
[INFO] [stdout]     type Err;
[INFO] [stdout]     fn get(&self, interface_name: &str, property_name: &str) -> Result<arg::Variant<Box<arg::RefArg + 'static>>, Self::Err>;
[INFO] [stdout]     fn get_all(&self, interface_name: &str) -> Result<::std::collections::HashMap<String, arg::Variant<Box<arg::RefArg + 'static>>>, Self::Err>;
[INFO] [stdout]     fn set(&self, interface_name: &str, property_name: &str, value: arg::Variant<Box<arg::RefArg>>) -> Result<(), Self::Err>;
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] impl<'a, C: ::std::ops::Deref<Target=dbus::Connection>> OrgFreedesktopDBusProperties for dbus::ConnPath<'a, C> {
[INFO] [stdout]     type Err = dbus::Error;
[INFO] [stdout] 
[INFO] [stdout]     fn get(&self, interface_name: &str, property_name: &str) -> Result<arg::Variant<Box<arg::RefArg + 'static>>, Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.DBus.Properties".into(), &"Get".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(interface_name);
[INFO] [stdout]             i.append(property_name);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         let mut i = m.iter_init();
[INFO] [stdout]         let value: arg::Variant<Box<arg::RefArg + 'static>> = i.read()?;
[INFO] [stdout]         Ok(value)
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn get_all(&self, interface_name: &str) -> Result<::std::collections::HashMap<String, arg::Variant<Box<arg::RefArg + 'static>>>, Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.DBus.Properties".into(), &"GetAll".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(interface_name);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         let mut i = m.iter_init();
[INFO] [stdout]         let properties: ::std::collections::HashMap<String, arg::Variant<Box<arg::RefArg + 'static>>> = i.read()?;
[INFO] [stdout]         Ok(properties)
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn set(&self, interface_name: &str, property_name: &str, value: arg::Variant<Box<arg::RefArg>>) -> Result<(), Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.DBus.Properties".into(), &"Set".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(interface_name);
[INFO] [stdout]             i.append(property_name);
[INFO] [stdout]             i.append(value);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] pub fn org_freedesktop_dbus_properties_server<F, T, D>(factory: &tree::Factory<tree::MTFn<D>, D>, data: D::Interface, f: F) -> tree::Interface<tree::MTFn<D>, D>
[INFO] [stdout] where
[INFO] [stdout]     D: tree::DataType,
[INFO] [stdout]     D::Method: Default,
[INFO] [stdout]     D::Signal: Default,
[INFO] [stdout]     T: OrgFreedesktopDBusProperties<Err=tree::MethodErr>,
[INFO] [stdout]     F: 'static + for <'z> Fn(& 'z tree::MethodInfo<tree::MTFn<D>, D>) -> & 'z T,
[INFO] [stdout] {
[INFO] [stdout]     let i = factory.interface("org.freedesktop.DBus.Properties", data);
[INFO] [stdout]     let f = ::std::sync::Arc::new(f);
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::MTFn<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let interface_name: &str = i.read()?;
[INFO] [stdout]         let property_name: &str = i.read()?;
[INFO] [stdout]         let d = fclone(minfo);
[INFO] [stdout]         let value = d.get(interface_name, property_name)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         let rm = rm.append1(value);
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("Get", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("interface_name", "s"));
[INFO] [stdout]     let m = m.in_arg(("property_name", "s"));
[INFO] [stdout]     let m = m.out_arg(("value", "v"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::MTFn<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let interface_name: &str = i.read()?;
[INFO] [stdout]         let d = fclone(minfo);
[INFO] [stdout]         let properties = d.get_all(interface_name)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         let rm = rm.append1(properties);
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("GetAll", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("interface_name", "s"));
[INFO] [stdout]     let m = m.out_arg(("properties", "a{sv}"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::MTFn<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let interface_name: &str = i.read()?;
[INFO] [stdout]         let property_name: &str = i.read()?;
[INFO] [stdout]         let value: arg::Variant<Box<arg::RefArg>> = i.read()?;
[INFO] [stdout]         let d = fclone(minfo);
[INFO] [stdout]         d.set(interface_name, property_name, value)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("Set", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("interface_name", "s"));
[INFO] [stdout]     let m = m.in_arg(("property_name", "s"));
[INFO] [stdout]     let m = m.in_arg(("value", "v"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout]     let s = factory.signal("PropertiesChanged", Default::default());
[INFO] [stdout]     let s = s.arg(("interface_name", "s"));
[INFO] [stdout]     let s = s.arg(("changed_properties", "a{sv}"));
[INFO] [stdout]     let s = s.arg(("invalidated_properties", "as"));
[INFO] [stdout]     let i = i.add_s(s);
[INFO] [stdout]     i
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] #[derive(Debug, Default)]
[INFO] [stdout] pub struct OrgFreedesktopDBusPropertiesPropertiesChanged {
[INFO] [stdout]     pub interface_name: String,
[INFO] [stdout]     pub changed_properties: ::std::collections::HashMap<String, arg::Variant<Box<arg::RefArg + 'static>>>,
[INFO] [stdout]     pub invalidated_properties: Vec<String>,
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] impl dbus::SignalArgs for OrgFreedesktopDBusPropertiesPropertiesChanged {
[INFO] [stdout]     const NAME: &'static str = "PropertiesChanged";
[INFO] [stdout]     const INTERFACE: &'static str = "org.freedesktop.DBus.Properties";
[INFO] [stdout]     fn append(&self, i: &mut arg::IterAppend) {
[INFO] [stdout]         arg::RefArg::append(&self.interface_name, i);
[INFO] [stdout]         arg::RefArg::append(&self.changed_properties, i);
[INFO] [stdout]         arg::RefArg::append(&self.invalidated_properties, i);
[INFO] [stdout]     }
[INFO] [stdout]     fn get(&mut self, i: &mut arg::Iter) -> Result<(), arg::TypeMismatchError> {
[INFO] [stdout]         self.interface_name = i.read()?;
[INFO] [stdout]         self.changed_properties = i.read()?;
[INFO] [stdout]         self.invalidated_properties = i.read()?;
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] pub trait OrgFreedesktopDBusIntrospectable {
[INFO] [stdout]     type Err;
[INFO] [stdout]     fn introspect(&self) -> Result<String, Self::Err>;
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] impl<'a, C: ::std::ops::Deref<Target=dbus::Connection>> OrgFreedesktopDBusIntrospectable for dbus::ConnPath<'a, C> {
[INFO] [stdout]     type Err = dbus::Error;
[INFO] [stdout] 
[INFO] [stdout]     fn introspect(&self) -> Result<String, Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.DBus.Introspectable".into(), &"Introspect".into(), |_| {
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         let mut i = m.iter_init();
[INFO] [stdout]         let xml_data: String = i.read()?;
[INFO] [stdout]         Ok(xml_data)
[INFO] [stdout]     }
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] pub fn org_freedesktop_dbus_introspectable_server<F, T, D>(factory: &tree::Factory<tree::MTFn<D>, D>, data: D::Interface, f: F) -> tree::Interface<tree::MTFn<D>, D>
[INFO] [stdout] where
[INFO] [stdout]     D: tree::DataType,
[INFO] [stdout]     D::Method: Default,
[INFO] [stdout]     T: OrgFreedesktopDBusIntrospectable<Err=tree::MethodErr>,
[INFO] [stdout]     F: 'static + for <'z> Fn(& 'z tree::MethodInfo<tree::MTFn<D>, D>) -> & 'z T,
[INFO] [stdout] {
[INFO] [stdout]     let i = factory.interface("org.freedesktop.DBus.Introspectable", data);
[INFO] [stdout]     let f = ::std::sync::Arc::new(f);
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::MTFn<D>, D>| {
[INFO] [stdout]         let d = fclone(minfo);
[INFO] [stdout]         let xml_data = d.introspect()?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         let rm = rm.append1(xml_data);
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("Introspect", Default::default(), h);
[INFO] [stdout]     let m = m.out_arg(("xml_data", "s"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout]     i
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] pub trait OrgFreedesktopDBusPeer {
[INFO] [stdout]     type Err;
[INFO] [stdout]     fn ping(&self) -> Result<(), Self::Err>;
[INFO] [stdout]     fn get_machine_id(&self) -> Result<String, Self::Err>;
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] impl<'a, C: ::std::ops::Deref<Target=dbus::Connection>> OrgFreedesktopDBusPeer for dbus::ConnPath<'a, C> {
[INFO] [stdout]     type Err = dbus::Error;
[INFO] [stdout] 
[INFO] [stdout]     fn ping(&self) -> Result<(), Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.DBus.Peer".into(), &"Ping".into(), |_| {
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn get_machine_id(&self) -> Result<String, Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.DBus.Peer".into(), &"GetMachineId".into(), |_| {
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         let mut i = m.iter_init();
[INFO] [stdout]         let machine_uuid: String = i.read()?;
[INFO] [stdout]         Ok(machine_uuid)
[INFO] [stdout]     }
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] pub fn org_freedesktop_dbus_peer_server<F, T, D>(factory: &tree::Factory<tree::MTFn<D>, D>, data: D::Interface, f: F) -> tree::Interface<tree::MTFn<D>, D>
[INFO] [stdout] where
[INFO] [stdout]     D: tree::DataType,
[INFO] [stdout]     D::Method: Default,
[INFO] [stdout]     T: OrgFreedesktopDBusPeer<Err=tree::MethodErr>,
[INFO] [stdout]     F: 'static + for <'z> Fn(& 'z tree::MethodInfo<tree::MTFn<D>, D>) -> & 'z T,
[INFO] [stdout] {
[INFO] [stdout]     let i = factory.interface("org.freedesktop.DBus.Peer", data);
[INFO] [stdout]     let f = ::std::sync::Arc::new(f);
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::MTFn<D>, D>| {
[INFO] [stdout]         let d = fclone(minfo);
[INFO] [stdout]         d.ping()?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("Ping", Default::default(), h);
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::MTFn<D>, D>| {
[INFO] [stdout]         let d = fclone(minfo);
[INFO] [stdout]         let machine_uuid = d.get_machine_id()?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         let rm = rm.append1(machine_uuid);
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("GetMachineId", Default::default(), h);
[INFO] [stdout]     let m = m.out_arg(("machine_uuid", "s"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout]     i
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] pub trait OrgFreedesktopPolicyKit1Authority {
[INFO] [stdout]     type Err;
[INFO] [stdout]     fn enumerate_actions(&self, locale: &str) -> Result<Vec<(String, String, String, String, String, String, u32, u32, u32, ::std::collections::HashMap<String, String>)>, Self::Err>;
[INFO] [stdout]     fn check_authorization(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>), action_id: &str, details: ::std::collections::HashMap<&str, &str>, flags: u32, cancellation_id: &str) -> Result<(bool, bool, ::std::collections::HashMap<String, String>), Self::Err>;
[INFO] [stdout]     fn cancel_check_authorization(&self, cancellation_id: &str) -> Result<(), Self::Err>;
[INFO] [stdout]     fn register_authentication_agent(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>), locale: &str, object_path: &str) -> Result<(), Self::Err>;
[INFO] [stdout]     fn register_authentication_agent_with_options(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>), locale: &str, object_path: &str, options: ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>) -> Result<(), Self::Err>;
[INFO] [stdout]     fn unregister_authentication_agent(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>), object_path: &str) -> Result<(), Self::Err>;
[INFO] [stdout]     fn authentication_agent_response(&self, cookie: &str, identity: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>)) -> Result<(), Self::Err>;
[INFO] [stdout]     fn authentication_agent_response2(&self, uid: u32, cookie: &str, identity: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>)) -> Result<(), Self::Err>;
[INFO] [stdout]     fn enumerate_temporary_authorizations(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>)) -> Result<Vec<(String, String, (String, ::std::collections::HashMap<String, arg::Variant<Box<arg::RefArg + 'static>>>), u64, u64)>, Self::Err>;
[INFO] [stdout]     fn revoke_temporary_authorizations(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>)) -> Result<(), Self::Err>;
[INFO] [stdout]     fn revoke_temporary_authorization_by_id(&self, id: &str) -> Result<(), Self::Err>;
[INFO] [stdout]     fn get_backend_name(&self) -> Result<String, Self::Err>;
[INFO] [stdout]     fn get_backend_version(&self) -> Result<String, Self::Err>;
[INFO] [stdout]     fn get_backend_features(&self) -> Result<u32, Self::Err>;
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] impl<'a, C: ::std::ops::Deref<Target=dbus::Connection>> OrgFreedesktopPolicyKit1Authority for dbus::ConnPath<'a, C> {
[INFO] [stdout]     type Err = dbus::Error;
[INFO] [stdout] 
[INFO] [stdout]     fn enumerate_actions(&self, locale: &str) -> Result<Vec<(String, String, String, String, String, String, u32, u32, u32, ::std::collections::HashMap<String, String>)>, Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.PolicyKit1.Authority".into(), &"EnumerateActions".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(locale);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         let mut i = m.iter_init();
[INFO] [stdout]         let action_descriptions: Vec<(String, String, String, String, String, String, u32, u32, u32, ::std::collections::HashMap<String, String>)> = i.read()?;
[INFO] [stdout]         Ok(action_descriptions)
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn check_authorization(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>), action_id: &str, details: ::std::collections::HashMap<&str, &str>, flags: u32, cancellation_id: &str) -> Result<(bool, bool, ::std::collections::HashMap<String, String>), Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.PolicyKit1.Authority".into(), &"CheckAuthorization".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(subject);
[INFO] [stdout]             i.append(action_id);
[INFO] [stdout]             i.append(details);
[INFO] [stdout]             i.append(flags);
[INFO] [stdout]             i.append(cancellation_id);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         let mut i = m.iter_init();
[INFO] [stdout]         let result: (bool, bool, ::std::collections::HashMap<String, String>) = i.read()?;
[INFO] [stdout]         Ok(result)
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn cancel_check_authorization(&self, cancellation_id: &str) -> Result<(), Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.PolicyKit1.Authority".into(), &"CancelCheckAuthorization".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(cancellation_id);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn register_authentication_agent(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>), locale: &str, object_path: &str) -> Result<(), Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.PolicyKit1.Authority".into(), &"RegisterAuthenticationAgent".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(subject);
[INFO] [stdout]             i.append(locale);
[INFO] [stdout]             i.append(object_path);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn register_authentication_agent_with_options(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>), locale: &str, object_path: &str, options: ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>) -> Result<(), Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.PolicyKit1.Authority".into(), &"RegisterAuthenticationAgentWithOptions".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(subject);
[INFO] [stdout]             i.append(locale);
[INFO] [stdout]             i.append(object_path);
[INFO] [stdout]             i.append(options);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn unregister_authentication_agent(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>), object_path: &str) -> Result<(), Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.PolicyKit1.Authority".into(), &"UnregisterAuthenticationAgent".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(subject);
[INFO] [stdout]             i.append(object_path);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn authentication_agent_response(&self, cookie: &str, identity: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>)) -> Result<(), Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.PolicyKit1.Authority".into(), &"AuthenticationAgentResponse".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(cookie);
[INFO] [stdout]             i.append(identity);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn authentication_agent_response2(&self, uid: u32, cookie: &str, identity: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>)) -> Result<(), Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.PolicyKit1.Authority".into(), &"AuthenticationAgentResponse2".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(uid);
[INFO] [stdout]             i.append(cookie);
[INFO] [stdout]             i.append(identity);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn enumerate_temporary_authorizations(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>)) -> Result<Vec<(String, String, (String, ::std::collections::HashMap<String, arg::Variant<Box<arg::RefArg + 'static>>>), u64, u64)>, Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.PolicyKit1.Authority".into(), &"EnumerateTemporaryAuthorizations".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(subject);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         let mut i = m.iter_init();
[INFO] [stdout]         let temporary_authorizations: Vec<(String, String, (String, ::std::collections::HashMap<String, arg::Variant<Box<arg::RefArg + 'static>>>), u64, u64)> = i.read()?;
[INFO] [stdout]         Ok(temporary_authorizations)
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn revoke_temporary_authorizations(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>)) -> Result<(), Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.PolicyKit1.Authority".into(), &"RevokeTemporaryAuthorizations".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(subject);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn revoke_temporary_authorization_by_id(&self, id: &str) -> Result<(), Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.PolicyKit1.Authority".into(), &"RevokeTemporaryAuthorizationById".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(id);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn get_backend_name(&self) -> Result<String, Self::Err> {
[INFO] [stdout]         <Self as dbus::stdintf::org_freedesktop_dbus::Properties>::get(&self, "org.freedesktop.PolicyKit1.Authority", "BackendName")
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn get_backend_version(&self) -> Result<String, Self::Err> {
[INFO] [stdout]         <Self as dbus::stdintf::org_freedesktop_dbus::Properties>::get(&self, "org.freedesktop.PolicyKit1.Authority", "BackendVersion")
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn get_backend_features(&self) -> Result<u32, Self::Err> {
[INFO] [stdout]         <Self as dbus::stdintf::org_freedesktop_dbus::Properties>::get(&self, "org.freedesktop.PolicyKit1.Authority", "BackendFeatures")
[INFO] [stdout]     }
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] pub fn org_freedesktop_policy_kit1_authority_server<F, T, D>(factory: &tree::Factory<tree::MTFn<D>, D>, data: D::Interface, f: F) -> tree::Interface<tree::MTFn<D>, D>
[INFO] [stdout] where
[INFO] [stdout]     D: tree::DataType,
[INFO] [stdout]     D::Method: Default,
[INFO] [stdout]     D::Property: Default,
[INFO] [stdout]     D::Signal: Default,
[INFO] [stdout]     T: OrgFreedesktopPolicyKit1Authority<Err=tree::MethodErr>,
[INFO] [stdout]     F: 'static + for <'z> Fn(& 'z tree::MethodInfo<tree::MTFn<D>, D>) -> & 'z T,
[INFO] [stdout] {
[INFO] [stdout]     let i = factory.interface("org.freedesktop.PolicyKit1.Authority", data);
[INFO] [stdout]     let f = ::std::sync::Arc::new(f);
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::MTFn<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let locale: &str = i.read()?;
[INFO] [stdout]         let d = fclone(minfo);
[INFO] [stdout]         let action_descriptions = d.enumerate_actions(locale)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         let rm = rm.append1(action_descriptions);
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("EnumerateActions", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("locale", "s"));
[INFO] [stdout]     let m = m.out_arg(("action_descriptions", "a(ssssssuuua{ss})"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::MTFn<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>) = i.read()?;
[INFO] [stdout]         let action_id: &str = i.read()?;
[INFO] [stdout]         let details: ::std::collections::HashMap<&str, &str> = i.read()?;
[INFO] [stdout]         let flags: u32 = i.read()?;
[INFO] [stdout]         let cancellation_id: &str = i.read()?;
[INFO] [stdout]         let d = fclone(minfo);
[INFO] [stdout]         let result = d.check_authorization(subject, action_id, details, flags, cancellation_id)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         let rm = rm.append1(result);
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("CheckAuthorization", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("subject", "(sa{sv})"));
[INFO] [stdout]     let m = m.in_arg(("action_id", "s"));
[INFO] [stdout]     let m = m.in_arg(("details", "a{ss}"));
[INFO] [stdout]     let m = m.in_arg(("flags", "u"));
[INFO] [stdout]     let m = m.in_arg(("cancellation_id", "s"));
[INFO] [stdout]     let m = m.out_arg(("result", "(bba{ss})"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::MTFn<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let cancellation_id: &str = i.read()?;
[INFO] [stdout]         let d = fclone(minfo);
[INFO] [stdout]         d.cancel_check_authorization(cancellation_id)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("CancelCheckAuthorization", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("cancellation_id", "s"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::MTFn<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>) = i.read()?;
[INFO] [stdout]         let locale: &str = i.read()?;
[INFO] [stdout]         let object_path: &str = i.read()?;
[INFO] [stdout]         let d = fclone(minfo);
[INFO] [stdout]         d.register_authentication_agent(subject, locale, object_path)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("RegisterAuthenticationAgent", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("subject", "(sa{sv})"));
[INFO] [stdout]     let m = m.in_arg(("locale", "s"));
[INFO] [stdout]     let m = m.in_arg(("object_path", "s"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::MTFn<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>) = i.read()?;
[INFO] [stdout]         let locale: &str = i.read()?;
[INFO] [stdout]         let object_path: &str = i.read()?;
[INFO] [stdout]         let options: ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>> = i.read()?;
[INFO] [stdout]         let d = fclone(minfo);
[INFO] [stdout]         d.register_authentication_agent_with_options(subject, locale, object_path, options)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("RegisterAuthenticationAgentWithOptions", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("subject", "(sa{sv})"));
[INFO] [stdout]     let m = m.in_arg(("locale", "s"));
[INFO] [stdout]     let m = m.in_arg(("object_path", "s"));
[INFO] [stdout]     let m = m.in_arg(("options", "a{sv}"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::MTFn<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>) = i.read()?;
[INFO] [stdout]         let object_path: &str = i.read()?;
[INFO] [stdout]         let d = fclone(minfo);
[INFO] [stdout]         d.unregister_authentication_agent(subject, object_path)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("UnregisterAuthenticationAgent", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("subject", "(sa{sv})"));
[INFO] [stdout]     let m = m.in_arg(("object_path", "s"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::MTFn<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let cookie: &str = i.read()?;
[INFO] [stdout]         let identity: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>) = i.read()?;
[INFO] [stdout]         let d = fclone(minfo);
[INFO] [stdout]         d.authentication_agent_response(cookie, identity)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("AuthenticationAgentResponse", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("cookie", "s"));
[INFO] [stdout]     let m = m.in_arg(("identity", "(sa{sv})"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::MTFn<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let uid: u32 = i.read()?;
[INFO] [stdout]         let cookie: &str = i.read()?;
[INFO] [stdout]         let identity: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>) = i.read()?;
[INFO] [stdout]         let d = fclone(minfo);
[INFO] [stdout]         d.authentication_agent_response2(uid, cookie, identity)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("AuthenticationAgentResponse2", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("uid", "u"));
[INFO] [stdout]     let m = m.in_arg(("cookie", "s"));
[INFO] [stdout]     let m = m.in_arg(("identity", "(sa{sv})"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::MTFn<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>) = i.read()?;
[INFO] [stdout]         let d = fclone(minfo);
[INFO] [stdout]         let temporary_authorizations = d.enumerate_temporary_authorizations(subject)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         let rm = rm.append1(temporary_authorizations);
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("EnumerateTemporaryAuthorizations", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("subject", "(sa{sv})"));
[INFO] [stdout]     let m = m.out_arg(("temporary_authorizations", "a(ss(sa{sv})tt)"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::MTFn<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>) = i.read()?;
[INFO] [stdout]         let d = fclone(minfo);
[INFO] [stdout]         d.revoke_temporary_authorizations(subject)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("RevokeTemporaryAuthorizations", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("subject", "(sa{sv})"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::MTFn<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let id: &str = i.read()?;
[INFO] [stdout]         let d = fclone(minfo);
[INFO] [stdout]         d.revoke_temporary_authorization_by_id(id)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("RevokeTemporaryAuthorizationById", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("id", "s"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let p = factory.property::<&str, _>("BackendName", Default::default());
[INFO] [stdout]     let p = p.access(tree::Access::Read);
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let p = p.on_get(move |a, pinfo| {
[INFO] [stdout]         let minfo = pinfo.to_method_info();
[INFO] [stdout]         let d = fclone(&minfo);
[INFO] [stdout]         a.append(d.get_backend_name()?);
[INFO] [stdout]         Ok(())
[INFO] [stdout]     });
[INFO] [stdout]     let i = i.add_p(p);
[INFO] [stdout] 
[INFO] [stdout]     let p = factory.property::<&str, _>("BackendVersion", Default::default());
[INFO] [stdout]     let p = p.access(tree::Access::Read);
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let p = p.on_get(move |a, pinfo| {
[INFO] [stdout]         let minfo = pinfo.to_method_info();
[INFO] [stdout]         let d = fclone(&minfo);
[INFO] [stdout]         a.append(d.get_backend_version()?);
[INFO] [stdout]         Ok(())
[INFO] [stdout]     });
[INFO] [stdout]     let i = i.add_p(p);
[INFO] [stdout] 
[INFO] [stdout]     let p = factory.property::<u32, _>("BackendFeatures", Default::default());
[INFO] [stdout]     let p = p.access(tree::Access::Read);
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let p = p.on_get(move |a, pinfo| {
[INFO] [stdout]         let minfo = pinfo.to_method_info();
[INFO] [stdout]         let d = fclone(&minfo);
[INFO] [stdout]         a.append(d.get_backend_features()?);
[INFO] [stdout]         Ok(())
[INFO] [stdout]     });
[INFO] [stdout]     let i = i.add_p(p);
[INFO] [stdout]     let s = factory.signal("Changed", Default::default());
[INFO] [stdout]     let i = i.add_s(s);
[INFO] [stdout]     i
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] #[derive(Debug, Default)]
[INFO] [stdout] pub struct OrgFreedesktopPolicyKit1AuthorityChanged {
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] impl dbus::SignalArgs for OrgFreedesktopPolicyKit1AuthorityChanged {
[INFO] [stdout]     const NAME: &'static str = "Changed";
[INFO] [stdout]     const INTERFACE: &'static str = "org.freedesktop.PolicyKit1.Authority";
[INFO] [stdout]     fn append(&self, _: &mut arg::IterAppend) {
[INFO] [stdout]     }
[INFO] [stdout]     fn get(&mut self, _: &mut arg::Iter) -> Result<(), arg::TypeMismatchError> {
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] thread 'generate::tests::from_policykit' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 30, kind: Other, message: "Read-only file system" }', src/libcore/result.rs:999:5
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x562e69f2ca13 - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::h6485381528590a55
[INFO] [stdout]                                at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
[INFO] [stdout]    1:     0x562e69f2834b - std::sys_common::backtrace::_print::h49a82ae9552e35c7
[INFO] [stdout]                                at src/libstd/sys_common/backtrace.rs:71
[INFO] [stdout]    2:     0x562e69f2b756 - std::panicking::default_hook::{{closure}}::he20974adbefcc046
[INFO] [stdout]                                at src/libstd/sys_common/backtrace.rs:59
[INFO] [stdout]                                at src/libstd/panicking.rs:197
[INFO] [stdout]    3:     0x562e69f2b47e - std::panicking::default_hook::he4af6af4ac7fef7b
[INFO] [stdout]                                at src/libstd/panicking.rs:208
[INFO] [stdout]    4:     0x562e69f2be5f - std::panicking::rust_panic_with_hook::h057ff03eb4c8000f
[INFO] [stdout]                                at src/libstd/panicking.rs:474
[INFO] [stdout]    5:     0x562e69f2b9e1 - std::panicking::continue_panic_fmt::ha6d6ae144369025b
[INFO] [stdout]                                at src/libstd/panicking.rs:381
[INFO] [stdout]    6:     0x562e69f2b8c5 - rust_begin_unwind
[INFO] [stdout]                                at src/libstd/panicking.rs:308
[INFO] [stdout]    7:     0x562e69f3dd5c - core::panicking::panic_fmt::hc4f83bfed80aeabd
[INFO] [stdout]                                at src/libcore/panicking.rs:85
[INFO] [stdout]    8:     0x562e69e78df2 - core::result::unwrap_failed::h8459a108d687ee6b
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/macros.rs:18
[INFO] [stdout]    9:     0x562e69e798a6 - core::result::Result<T,E>::unwrap::h77381c739675411b
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/result.rs:800
[INFO] [stdout]   10:     0x562e69e7c84c - dbus_codegen::generate::tests::from_policykit::hd9b626e88d547ffd
[INFO] [stdout]                                at src/generate.rs:923
[INFO] [stdout]   11:     0x562e69e7c6d9 - dbus_codegen::generate::tests::from_policykit::{{closure}}::h11fbd1fc05313cfa
[INFO] [stdout]                                at src/generate.rs:920
[INFO] [stdout]   12:     0x562e69e7e3dd - core::ops::function::FnOnce::call_once::h02a223f8d3b82234
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/ops/function.rs:231
[INFO] [stdout]   13:     0x562e69e9bdce - <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once::h6b004fa8f4fc1608
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704
[INFO] [stdout]   14:     0x562e69f2eb79 - __rust_maybe_catch_panic
[INFO] [stdout]                                at src/libpanic_unwind/lib.rs:85
[INFO] [stdout]   15:     0x562e69eb66c7 - test::run_test::run_test_inner::{{closure}}::h9a4d23c41d058d37
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:272
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:394
[INFO] [stdout]                                at src/libtest/lib.rs:1468
[INFO] [stdout]   16:     0x562e69e910e4 - std::sys_common::backtrace::__rust_begin_short_backtrace::h3765d76361a33ff7
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/sys_common/backtrace.rs:136
[INFO] [stdout]   17:     0x562e69e95194 - std::panicking::try::do_call::h6f86e980b52f74d5
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/mod.rs:470
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:315
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:293
[INFO] [stdout]   18:     0x562e69f2eb79 - __rust_maybe_catch_panic
[INFO] [stdout]                                at src/libpanic_unwind/lib.rs:85
[INFO] [stdout]   19:     0x562e69e957a1 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h760b8a2b155f54c3
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:272
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:394
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/mod.rs:469
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/ops/function.rs:231
[INFO] [stdout]   20:     0x562e69f1fece - <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once::h805c3cc89d534c05
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704
[INFO] [stdout]   21:     0x562e69f2e25f - std::sys::unix::thread::Thread::new::thread_start::h6f10b78f26c98dc6
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704
[INFO] [stdout]                                at src/libstd/sys_common/thread.rs:13
[INFO] [stdout]                                at src/libstd/sys/unix/thread.rs:79
[INFO] [stdout]   22:     0x7f5feae594a3 - start_thread
[INFO] [stdout]   23:     0x7f5fea984d0e - __clone
[INFO] [stdout]   24:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- generate::tests::from_policykit_asref_generic stdout ----
[INFO] [stdout] // This code was autogenerated with dbus-codegen-rust, see https://github.com/diwic/dbus-rs
[INFO] [stdout] 
[INFO] [stdout] #![allow(dead_code)]
[INFO] [stdout] use dbus as dbus;
[INFO] [stdout] use dbus::arg;
[INFO] [stdout] use dbus::tree;
[INFO] [stdout] 
[INFO] [stdout] pub trait OrgFreedesktopDBusProperties {
[INFO] [stdout]     type Err;
[INFO] [stdout]     fn get(&self, interface_name: &str, property_name: &str) -> Result<arg::Variant<Box<arg::RefArg + 'static>>, Self::Err>;
[INFO] [stdout]     fn get_all(&self, interface_name: &str) -> Result<::std::collections::HashMap<String, arg::Variant<Box<arg::RefArg + 'static>>>, Self::Err>;
[INFO] [stdout]     fn set(&self, interface_name: &str, property_name: &str, value: arg::Variant<Box<arg::RefArg>>) -> Result<(), Self::Err>;
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] impl<'a, C: ::std::ops::Deref<Target=dbus::Connection>> OrgFreedesktopDBusProperties for dbus::ConnPath<'a, C> {
[INFO] [stdout]     type Err = dbus::Error;
[INFO] [stdout] 
[INFO] [stdout]     fn get(&self, interface_name: &str, property_name: &str) -> Result<arg::Variant<Box<arg::RefArg + 'static>>, Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.DBus.Properties".into(), &"Get".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(interface_name);
[INFO] [stdout]             i.append(property_name);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         let mut i = m.iter_init();
[INFO] [stdout]         let value: arg::Variant<Box<arg::RefArg + 'static>> = i.read()?;
[INFO] [stdout]         Ok(value)
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn get_all(&self, interface_name: &str) -> Result<::std::collections::HashMap<String, arg::Variant<Box<arg::RefArg + 'static>>>, Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.DBus.Properties".into(), &"GetAll".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(interface_name);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         let mut i = m.iter_init();
[INFO] [stdout]         let properties: ::std::collections::HashMap<String, arg::Variant<Box<arg::RefArg + 'static>>> = i.read()?;
[INFO] [stdout]         Ok(properties)
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn set(&self, interface_name: &str, property_name: &str, value: arg::Variant<Box<arg::RefArg>>) -> Result<(), Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.DBus.Properties".into(), &"Set".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(interface_name);
[INFO] [stdout]             i.append(property_name);
[INFO] [stdout]             i.append(value);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] pub fn org_freedesktop_dbus_properties_server<F, T, D>(factory: &tree::Factory<tree::Generic<D>, D>, data: D::Interface, f: F) -> tree::Interface<tree::Generic<D>, D>
[INFO] [stdout] where
[INFO] [stdout]     D: tree::DataType,
[INFO] [stdout]     D::Method: Default,
[INFO] [stdout]     D::Signal: Default,
[INFO] [stdout]     T: AsRef<OrgFreedesktopDBusProperties<Err=tree::MethodErr>>,
[INFO] [stdout]     F: 'static + Fn(&tree::MethodInfo<tree::Generic<D>, D>) -> T,
[INFO] [stdout] {
[INFO] [stdout]     let i = factory.interface("org.freedesktop.DBus.Properties", data);
[INFO] [stdout]     let f = ::std::sync::Arc::new(f);
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::Generic<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let interface_name: &str = i.read()?;
[INFO] [stdout]         let property_name: &str = i.read()?;
[INFO] [stdout]         let dd = fclone(minfo);
[INFO] [stdout]         let d = dd.as_ref();
[INFO] [stdout]         let value = d.get(interface_name, property_name)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         let rm = rm.append1(value);
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("Get", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("interface_name", "s"));
[INFO] [stdout]     let m = m.in_arg(("property_name", "s"));
[INFO] [stdout]     let m = m.out_arg(("value", "v"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::Generic<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let interface_name: &str = i.read()?;
[INFO] [stdout]         let dd = fclone(minfo);
[INFO] [stdout]         let d = dd.as_ref();
[INFO] [stdout]         let properties = d.get_all(interface_name)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         let rm = rm.append1(properties);
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("GetAll", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("interface_name", "s"));
[INFO] [stdout]     let m = m.out_arg(("properties", "a{sv}"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::Generic<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let interface_name: &str = i.read()?;
[INFO] [stdout]         let property_name: &str = i.read()?;
[INFO] [stdout]         let value: arg::Variant<Box<arg::RefArg>> = i.read()?;
[INFO] [stdout]         let dd = fclone(minfo);
[INFO] [stdout]         let d = dd.as_ref();
[INFO] [stdout]         d.set(interface_name, property_name, value)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("Set", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("interface_name", "s"));
[INFO] [stdout]     let m = m.in_arg(("property_name", "s"));
[INFO] [stdout]     let m = m.in_arg(("value", "v"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout]     let s = factory.signal("PropertiesChanged", Default::default());
[INFO] [stdout]     let s = s.arg(("interface_name", "s"));
[INFO] [stdout]     let s = s.arg(("changed_properties", "a{sv}"));
[INFO] [stdout]     let s = s.arg(("invalidated_properties", "as"));
[INFO] [stdout]     let i = i.add_s(s);
[INFO] [stdout]     i
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] #[derive(Debug, Default)]
[INFO] [stdout] pub struct OrgFreedesktopDBusPropertiesPropertiesChanged {
[INFO] [stdout]     pub interface_name: String,
[INFO] [stdout]     pub changed_properties: ::std::collections::HashMap<String, arg::Variant<Box<arg::RefArg + 'static>>>,
[INFO] [stdout]     pub invalidated_properties: Vec<String>,
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] impl dbus::SignalArgs for OrgFreedesktopDBusPropertiesPropertiesChanged {
[INFO] [stdout]     const NAME: &'static str = "PropertiesChanged";
[INFO] [stdout]     const INTERFACE: &'static str = "org.freedesktop.DBus.Properties";
[INFO] [stdout]     fn append(&self, i: &mut arg::IterAppend) {
[INFO] [stdout]         arg::RefArg::append(&self.interface_name, i);
[INFO] [stdout]         arg::RefArg::append(&self.changed_properties, i);
[INFO] [stdout]         arg::RefArg::append(&self.invalidated_properties, i);
[INFO] [stdout]     }
[INFO] [stdout]     fn get(&mut self, i: &mut arg::Iter) -> Result<(), arg::TypeMismatchError> {
[INFO] [stdout]         self.interface_name = i.read()?;
[INFO] [stdout]         self.changed_properties = i.read()?;
[INFO] [stdout]         self.invalidated_properties = i.read()?;
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] pub trait OrgFreedesktopDBusIntrospectable {
[INFO] [stdout]     type Err;
[INFO] [stdout]     fn introspect(&self) -> Result<String, Self::Err>;
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] impl<'a, C: ::std::ops::Deref<Target=dbus::Connection>> OrgFreedesktopDBusIntrospectable for dbus::ConnPath<'a, C> {
[INFO] [stdout]     type Err = dbus::Error;
[INFO] [stdout] 
[INFO] [stdout]     fn introspect(&self) -> Result<String, Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.DBus.Introspectable".into(), &"Introspect".into(), |_| {
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         let mut i = m.iter_init();
[INFO] [stdout]         let xml_data: String = i.read()?;
[INFO] [stdout]         Ok(xml_data)
[INFO] [stdout]     }
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] pub fn org_freedesktop_dbus_introspectable_server<F, T, D>(factory: &tree::Factory<tree::Generic<D>, D>, data: D::Interface, f: F) -> tree::Interface<tree::Generic<D>, D>
[INFO] [stdout] where
[INFO] [stdout]     D: tree::DataType,
[INFO] [stdout]     D::Method: Default,
[INFO] [stdout]     T: AsRef<OrgFreedesktopDBusIntrospectable<Err=tree::MethodErr>>,
[INFO] [stdout]     F: 'static + Fn(&tree::MethodInfo<tree::Generic<D>, D>) -> T,
[INFO] [stdout] {
[INFO] [stdout]     let i = factory.interface("org.freedesktop.DBus.Introspectable", data);
[INFO] [stdout]     let f = ::std::sync::Arc::new(f);
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::Generic<D>, D>| {
[INFO] [stdout]         let dd = fclone(minfo);
[INFO] [stdout]         let d = dd.as_ref();
[INFO] [stdout]         let xml_data = d.introspect()?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         let rm = rm.append1(xml_data);
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("Introspect", Default::default(), h);
[INFO] [stdout]     let m = m.out_arg(("xml_data", "s"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout]     i
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] pub trait OrgFreedesktopDBusPeer {
[INFO] [stdout]     type Err;
[INFO] [stdout]     fn ping(&self) -> Result<(), Self::Err>;
[INFO] [stdout]     fn get_machine_id(&self) -> Result<String, Self::Err>;
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] impl<'a, C: ::std::ops::Deref<Target=dbus::Connection>> OrgFreedesktopDBusPeer for dbus::ConnPath<'a, C> {
[INFO] [stdout]     type Err = dbus::Error;
[INFO] [stdout] 
[INFO] [stdout]     fn ping(&self) -> Result<(), Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.DBus.Peer".into(), &"Ping".into(), |_| {
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn get_machine_id(&self) -> Result<String, Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.DBus.Peer".into(), &"GetMachineId".into(), |_| {
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         let mut i = m.iter_init();
[INFO] [stdout]         let machine_uuid: String = i.read()?;
[INFO] [stdout]         Ok(machine_uuid)
[INFO] [stdout]     }
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] pub fn org_freedesktop_dbus_peer_server<F, T, D>(factory: &tree::Factory<tree::Generic<D>, D>, data: D::Interface, f: F) -> tree::Interface<tree::Generic<D>, D>
[INFO] [stdout] where
[INFO] [stdout]     D: tree::DataType,
[INFO] [stdout]     D::Method: Default,
[INFO] [stdout]     T: AsRef<OrgFreedesktopDBusPeer<Err=tree::MethodErr>>,
[INFO] [stdout]     F: 'static + Fn(&tree::MethodInfo<tree::Generic<D>, D>) -> T,
[INFO] [stdout] {
[INFO] [stdout]     let i = factory.interface("org.freedesktop.DBus.Peer", data);
[INFO] [stdout]     let f = ::std::sync::Arc::new(f);
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::Generic<D>, D>| {
[INFO] [stdout]         let dd = fclone(minfo);
[INFO] [stdout]         let d = dd.as_ref();
[INFO] [stdout]         d.ping()?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("Ping", Default::default(), h);
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::Generic<D>, D>| {
[INFO] [stdout]         let dd = fclone(minfo);
[INFO] [stdout]         let d = dd.as_ref();
[INFO] [stdout]         let machine_uuid = d.get_machine_id()?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         let rm = rm.append1(machine_uuid);
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("GetMachineId", Default::default(), h);
[INFO] [stdout]     let m = m.out_arg(("machine_uuid", "s"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout]     i
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] pub trait OrgFreedesktopPolicyKit1Authority {
[INFO] [stdout]     type Err;
[INFO] [stdout]     fn enumerate_actions(&self, locale: &str) -> Result<Vec<(String, String, String, String, String, String, u32, u32, u32, ::std::collections::HashMap<String, String>)>, Self::Err>;
[INFO] [stdout]     fn check_authorization(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>), action_id: &str, details: ::std::collections::HashMap<&str, &str>, flags: u32, cancellation_id: &str) -> Result<(bool, bool, ::std::collections::HashMap<String, String>), Self::Err>;
[INFO] [stdout]     fn cancel_check_authorization(&self, cancellation_id: &str) -> Result<(), Self::Err>;
[INFO] [stdout]     fn register_authentication_agent(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>), locale: &str, object_path: &str) -> Result<(), Self::Err>;
[INFO] [stdout]     fn register_authentication_agent_with_options(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>), locale: &str, object_path: &str, options: ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>) -> Result<(), Self::Err>;
[INFO] [stdout]     fn unregister_authentication_agent(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>), object_path: &str) -> Result<(), Self::Err>;
[INFO] [stdout]     fn authentication_agent_response(&self, cookie: &str, identity: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>)) -> Result<(), Self::Err>;
[INFO] [stdout]     fn authentication_agent_response2(&self, uid: u32, cookie: &str, identity: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>)) -> Result<(), Self::Err>;
[INFO] [stdout]     fn enumerate_temporary_authorizations(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>)) -> Result<Vec<(String, String, (String, ::std::collections::HashMap<String, arg::Variant<Box<arg::RefArg + 'static>>>), u64, u64)>, Self::Err>;
[INFO] [stdout]     fn revoke_temporary_authorizations(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>)) -> Result<(), Self::Err>;
[INFO] [stdout]     fn revoke_temporary_authorization_by_id(&self, id: &str) -> Result<(), Self::Err>;
[INFO] [stdout]     fn get_backend_name(&self) -> Result<String, Self::Err>;
[INFO] [stdout]     fn get_backend_version(&self) -> Result<String, Self::Err>;
[INFO] [stdout]     fn get_backend_features(&self) -> Result<u32, Self::Err>;
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] impl<'a, C: ::std::ops::Deref<Target=dbus::Connection>> OrgFreedesktopPolicyKit1Authority for dbus::ConnPath<'a, C> {
[INFO] [stdout]     type Err = dbus::Error;
[INFO] [stdout] 
[INFO] [stdout]     fn enumerate_actions(&self, locale: &str) -> Result<Vec<(String, String, String, String, String, String, u32, u32, u32, ::std::collections::HashMap<String, String>)>, Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.PolicyKit1.Authority".into(), &"EnumerateActions".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(locale);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         let mut i = m.iter_init();
[INFO] [stdout]         let action_descriptions: Vec<(String, String, String, String, String, String, u32, u32, u32, ::std::collections::HashMap<String, String>)> = i.read()?;
[INFO] [stdout]         Ok(action_descriptions)
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn check_authorization(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>), action_id: &str, details: ::std::collections::HashMap<&str, &str>, flags: u32, cancellation_id: &str) -> Result<(bool, bool, ::std::collections::HashMap<String, String>), Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.PolicyKit1.Authority".into(), &"CheckAuthorization".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(subject);
[INFO] [stdout]             i.append(action_id);
[INFO] [stdout]             i.append(details);
[INFO] [stdout]             i.append(flags);
[INFO] [stdout]             i.append(cancellation_id);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         let mut i = m.iter_init();
[INFO] [stdout]         let result: (bool, bool, ::std::collections::HashMap<String, String>) = i.read()?;
[INFO] [stdout]         Ok(result)
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn cancel_check_authorization(&self, cancellation_id: &str) -> Result<(), Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.PolicyKit1.Authority".into(), &"CancelCheckAuthorization".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(cancellation_id);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn register_authentication_agent(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>), locale: &str, object_path: &str) -> Result<(), Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.PolicyKit1.Authority".into(), &"RegisterAuthenticationAgent".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(subject);
[INFO] [stdout]             i.append(locale);
[INFO] [stdout]             i.append(object_path);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn register_authentication_agent_with_options(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>), locale: &str, object_path: &str, options: ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>) -> Result<(), Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.PolicyKit1.Authority".into(), &"RegisterAuthenticationAgentWithOptions".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(subject);
[INFO] [stdout]             i.append(locale);
[INFO] [stdout]             i.append(object_path);
[INFO] [stdout]             i.append(options);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn unregister_authentication_agent(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>), object_path: &str) -> Result<(), Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.PolicyKit1.Authority".into(), &"UnregisterAuthenticationAgent".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(subject);
[INFO] [stdout]             i.append(object_path);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn authentication_agent_response(&self, cookie: &str, identity: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>)) -> Result<(), Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.PolicyKit1.Authority".into(), &"AuthenticationAgentResponse".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(cookie);
[INFO] [stdout]             i.append(identity);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn authentication_agent_response2(&self, uid: u32, cookie: &str, identity: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>)) -> Result<(), Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.PolicyKit1.Authority".into(), &"AuthenticationAgentResponse2".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(uid);
[INFO] [stdout]             i.append(cookie);
[INFO] [stdout]             i.append(identity);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn enumerate_temporary_authorizations(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>)) -> Result<Vec<(String, String, (String, ::std::collections::HashMap<String, arg::Variant<Box<arg::RefArg + 'static>>>), u64, u64)>, Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.PolicyKit1.Authority".into(), &"EnumerateTemporaryAuthorizations".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(subject);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         let mut i = m.iter_init();
[INFO] [stdout]         let temporary_authorizations: Vec<(String, String, (String, ::std::collections::HashMap<String, arg::Variant<Box<arg::RefArg + 'static>>>), u64, u64)> = i.read()?;
[INFO] [stdout]         Ok(temporary_authorizations)
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn revoke_temporary_authorizations(&self, subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>)) -> Result<(), Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.PolicyKit1.Authority".into(), &"RevokeTemporaryAuthorizations".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(subject);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn revoke_temporary_authorization_by_id(&self, id: &str) -> Result<(), Self::Err> {
[INFO] [stdout]         let mut m = self.method_call_with_args(&"org.freedesktop.PolicyKit1.Authority".into(), &"RevokeTemporaryAuthorizationById".into(), |msg| {
[INFO] [stdout]             let mut i = arg::IterAppend::new(msg);
[INFO] [stdout]             i.append(id);
[INFO] [stdout]         })?;
[INFO] [stdout]         m.as_result()?;
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn get_backend_name(&self) -> Result<String, Self::Err> {
[INFO] [stdout]         <Self as dbus::stdintf::org_freedesktop_dbus::Properties>::get(&self, "org.freedesktop.PolicyKit1.Authority", "BackendName")
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn get_backend_version(&self) -> Result<String, Self::Err> {
[INFO] [stdout]         <Self as dbus::stdintf::org_freedesktop_dbus::Properties>::get(&self, "org.freedesktop.PolicyKit1.Authority", "BackendVersion")
[INFO] [stdout]     }
[INFO] [stdout] 
[INFO] [stdout]     fn get_backend_features(&self) -> Result<u32, Self::Err> {
[INFO] [stdout]         <Self as dbus::stdintf::org_freedesktop_dbus::Properties>::get(&self, "org.freedesktop.PolicyKit1.Authority", "BackendFeatures")
[INFO] [stdout]     }
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] pub fn org_freedesktop_policy_kit1_authority_server<F, T, D>(factory: &tree::Factory<tree::Generic<D>, D>, data: D::Interface, f: F) -> tree::Interface<tree::Generic<D>, D>
[INFO] [stdout] where
[INFO] [stdout]     D: tree::DataType,
[INFO] [stdout]     D::Method: Default,
[INFO] [stdout]     D::Property: Default,
[INFO] [stdout]     D::Signal: Default,
[INFO] [stdout]     T: AsRef<OrgFreedesktopPolicyKit1Authority<Err=tree::MethodErr>>,
[INFO] [stdout]     F: 'static + Fn(&tree::MethodInfo<tree::Generic<D>, D>) -> T,
[INFO] [stdout] {
[INFO] [stdout]     let i = factory.interface("org.freedesktop.PolicyKit1.Authority", data);
[INFO] [stdout]     let f = ::std::sync::Arc::new(f);
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::Generic<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let locale: &str = i.read()?;
[INFO] [stdout]         let dd = fclone(minfo);
[INFO] [stdout]         let d = dd.as_ref();
[INFO] [stdout]         let action_descriptions = d.enumerate_actions(locale)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         let rm = rm.append1(action_descriptions);
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("EnumerateActions", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("locale", "s"));
[INFO] [stdout]     let m = m.out_arg(("action_descriptions", "a(ssssssuuua{ss})"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::Generic<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>) = i.read()?;
[INFO] [stdout]         let action_id: &str = i.read()?;
[INFO] [stdout]         let details: ::std::collections::HashMap<&str, &str> = i.read()?;
[INFO] [stdout]         let flags: u32 = i.read()?;
[INFO] [stdout]         let cancellation_id: &str = i.read()?;
[INFO] [stdout]         let dd = fclone(minfo);
[INFO] [stdout]         let d = dd.as_ref();
[INFO] [stdout]         let result = d.check_authorization(subject, action_id, details, flags, cancellation_id)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         let rm = rm.append1(result);
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("CheckAuthorization", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("subject", "(sa{sv})"));
[INFO] [stdout]     let m = m.in_arg(("action_id", "s"));
[INFO] [stdout]     let m = m.in_arg(("details", "a{ss}"));
[INFO] [stdout]     let m = m.in_arg(("flags", "u"));
[INFO] [stdout]     let m = m.in_arg(("cancellation_id", "s"));
[INFO] [stdout]     let m = m.out_arg(("result", "(bba{ss})"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::Generic<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let cancellation_id: &str = i.read()?;
[INFO] [stdout]         let dd = fclone(minfo);
[INFO] [stdout]         let d = dd.as_ref();
[INFO] [stdout]         d.cancel_check_authorization(cancellation_id)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("CancelCheckAuthorization", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("cancellation_id", "s"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::Generic<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>) = i.read()?;
[INFO] [stdout]         let locale: &str = i.read()?;
[INFO] [stdout]         let object_path: &str = i.read()?;
[INFO] [stdout]         let dd = fclone(minfo);
[INFO] [stdout]         let d = dd.as_ref();
[INFO] [stdout]         d.register_authentication_agent(subject, locale, object_path)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("RegisterAuthenticationAgent", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("subject", "(sa{sv})"));
[INFO] [stdout]     let m = m.in_arg(("locale", "s"));
[INFO] [stdout]     let m = m.in_arg(("object_path", "s"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::Generic<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>) = i.read()?;
[INFO] [stdout]         let locale: &str = i.read()?;
[INFO] [stdout]         let object_path: &str = i.read()?;
[INFO] [stdout]         let options: ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>> = i.read()?;
[INFO] [stdout]         let dd = fclone(minfo);
[INFO] [stdout]         let d = dd.as_ref();
[INFO] [stdout]         d.register_authentication_agent_with_options(subject, locale, object_path, options)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("RegisterAuthenticationAgentWithOptions", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("subject", "(sa{sv})"));
[INFO] [stdout]     let m = m.in_arg(("locale", "s"));
[INFO] [stdout]     let m = m.in_arg(("object_path", "s"));
[INFO] [stdout]     let m = m.in_arg(("options", "a{sv}"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::Generic<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>) = i.read()?;
[INFO] [stdout]         let object_path: &str = i.read()?;
[INFO] [stdout]         let dd = fclone(minfo);
[INFO] [stdout]         let d = dd.as_ref();
[INFO] [stdout]         d.unregister_authentication_agent(subject, object_path)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("UnregisterAuthenticationAgent", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("subject", "(sa{sv})"));
[INFO] [stdout]     let m = m.in_arg(("object_path", "s"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::Generic<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let cookie: &str = i.read()?;
[INFO] [stdout]         let identity: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>) = i.read()?;
[INFO] [stdout]         let dd = fclone(minfo);
[INFO] [stdout]         let d = dd.as_ref();
[INFO] [stdout]         d.authentication_agent_response(cookie, identity)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("AuthenticationAgentResponse", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("cookie", "s"));
[INFO] [stdout]     let m = m.in_arg(("identity", "(sa{sv})"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::Generic<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let uid: u32 = i.read()?;
[INFO] [stdout]         let cookie: &str = i.read()?;
[INFO] [stdout]         let identity: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>) = i.read()?;
[INFO] [stdout]         let dd = fclone(minfo);
[INFO] [stdout]         let d = dd.as_ref();
[INFO] [stdout]         d.authentication_agent_response2(uid, cookie, identity)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("AuthenticationAgentResponse2", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("uid", "u"));
[INFO] [stdout]     let m = m.in_arg(("cookie", "s"));
[INFO] [stdout]     let m = m.in_arg(("identity", "(sa{sv})"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::Generic<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>) = i.read()?;
[INFO] [stdout]         let dd = fclone(minfo);
[INFO] [stdout]         let d = dd.as_ref();
[INFO] [stdout]         let temporary_authorizations = d.enumerate_temporary_authorizations(subject)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         let rm = rm.append1(temporary_authorizations);
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("EnumerateTemporaryAuthorizations", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("subject", "(sa{sv})"));
[INFO] [stdout]     let m = m.out_arg(("temporary_authorizations", "a(ss(sa{sv})tt)"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::Generic<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let subject: (&str, ::std::collections::HashMap<&str, arg::Variant<Box<arg::RefArg>>>) = i.read()?;
[INFO] [stdout]         let dd = fclone(minfo);
[INFO] [stdout]         let d = dd.as_ref();
[INFO] [stdout]         d.revoke_temporary_authorizations(subject)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("RevokeTemporaryAuthorizations", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("subject", "(sa{sv})"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let h = move |minfo: &tree::MethodInfo<tree::Generic<D>, D>| {
[INFO] [stdout]         let mut i = minfo.msg.iter_init();
[INFO] [stdout]         let id: &str = i.read()?;
[INFO] [stdout]         let dd = fclone(minfo);
[INFO] [stdout]         let d = dd.as_ref();
[INFO] [stdout]         d.revoke_temporary_authorization_by_id(id)?;
[INFO] [stdout]         let rm = minfo.msg.method_return();
[INFO] [stdout]         Ok(vec!(rm))
[INFO] [stdout]     };
[INFO] [stdout]     let m = factory.method("RevokeTemporaryAuthorizationById", Default::default(), h);
[INFO] [stdout]     let m = m.in_arg(("id", "s"));
[INFO] [stdout]     let i = i.add_m(m);
[INFO] [stdout] 
[INFO] [stdout]     let p = factory.property::<&str, _>("BackendName", Default::default());
[INFO] [stdout]     let p = p.access(tree::Access::Read);
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let p = p.on_get(move |a, pinfo| {
[INFO] [stdout]         let minfo = pinfo.to_method_info();
[INFO] [stdout]         let dd = fclone(&minfo);
[INFO] [stdout]         let d = dd.as_ref();
[INFO] [stdout]         a.append(d.get_backend_name()?);
[INFO] [stdout]         Ok(())
[INFO] [stdout]     });
[INFO] [stdout]     let i = i.add_p(p);
[INFO] [stdout] 
[INFO] [stdout]     let p = factory.property::<&str, _>("BackendVersion", Default::default());
[INFO] [stdout]     let p = p.access(tree::Access::Read);
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let p = p.on_get(move |a, pinfo| {
[INFO] [stdout]         let minfo = pinfo.to_method_info();
[INFO] [stdout]         let dd = fclone(&minfo);
[INFO] [stdout]         let d = dd.as_ref();
[INFO] [stdout]         a.append(d.get_backend_version()?);
[INFO] [stdout]         Ok(())
[INFO] [stdout]     });
[INFO] [stdout]     let i = i.add_p(p);
[INFO] [stdout] 
[INFO] [stdout]     let p = factory.property::<u32, _>("BackendFeatures", Default::default());
[INFO] [stdout]     let p = p.access(tree::Access::Read);
[INFO] [stdout]     let fclone = f.clone();
[INFO] [stdout]     let p = p.on_get(move |a, pinfo| {
[INFO] [stdout]         let minfo = pinfo.to_method_info();
[INFO] [stdout]         let dd = fclone(&minfo);
[INFO] [stdout]         let d = dd.as_ref();
[INFO] [stdout]         a.append(d.get_backend_features()?);
[INFO] [stdout]         Ok(())
[INFO] [stdout]     });
[INFO] [stdout]     let i = i.add_p(p);
[INFO] [stdout]     let s = factory.signal("Changed", Default::default());
[INFO] [stdout]     let i = i.add_s(s);
[INFO] [stdout]     i
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] #[derive(Debug, Default)]
[INFO] [stdout] pub struct OrgFreedesktopPolicyKit1AuthorityChanged {
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] impl dbus::SignalArgs for OrgFreedesktopPolicyKit1AuthorityChanged {
[INFO] [stdout]     const NAME: &'static str = "Changed";
[INFO] [stdout]     const INTERFACE: &'static str = "org.freedesktop.PolicyKit1.Authority";
[INFO] [stdout]     fn append(&self, _: &mut arg::IterAppend) {
[INFO] [stdout]     }
[INFO] [stdout]     fn get(&mut self, _: &mut arg::Iter) -> Result<(), arg::TypeMismatchError> {
[INFO] [stdout]         Ok(())
[INFO] [stdout]     }
[INFO] [stdout] }
[INFO] [stdout] 
[INFO] [stdout] thread 'generate::tests::from_policykit_asref_generic' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 30, kind: Other, message: "Read-only file system" }', src/libcore/result.rs:999:5
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x562e69f2ca13 - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::h6485381528590a55
[INFO] [stdout]                                at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
[INFO] [stdout]    1:     0x562e69f2834b - std::sys_common::backtrace::_print::h49a82ae9552e35c7
[INFO] [stdout]                                at src/libstd/sys_common/backtrace.rs:71
[INFO] [stdout]    2:     0x562e69f2b756 - std::panicking::default_hook::{{closure}}::he20974adbefcc046
[INFO] [stdout]                                at src/libstd/sys_common/backtrace.rs:59
[INFO] [stdout]                                at src/libstd/panicking.rs:197
[INFO] [stdout]    3:     0x562e69f2b47e - std::panicking::default_hook::he4af6af4ac7fef7b
[INFO] [stdout]                                at src/libstd/panicking.rs:208
[INFO] [stdout]    4:     0x562e69f2be5f - std::panicking::rust_panic_with_hook::h057ff03eb4c8000f
[INFO] [stdout]                                at src/libstd/panicking.rs:474
[INFO] [stdout]    5:     0x562e69f2b9e1 - std::panicking::continue_panic_fmt::ha6d6ae144369025b
[INFO] [stdout]                                at src/libstd/panicking.rs:381
[INFO] [stdout]    6:     0x562e69f2b8c5 - rust_begin_unwind
[INFO] [stdout]                                at src/libstd/panicking.rs:308
[INFO] [stdout]    7:     0x562e69f3dd5c - core::panicking::panic_fmt::hc4f83bfed80aeabd
[INFO] [stdout]                                at src/libcore/panicking.rs:85
[INFO] [stdout]    8:     0x562e69e78df2 - core::result::unwrap_failed::h8459a108d687ee6b
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/macros.rs:18
[INFO] [stdout]    9:     0x562e69e798a6 - core::result::Result<T,E>::unwrap::h77381c739675411b
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/result.rs:800
[INFO] [stdout]   10:     0x562e69e7cb6a - dbus_codegen::generate::tests::from_policykit_asref_generic::hb6b39e0fc41a7838
[INFO] [stdout]                                at src/generate.rs:934
[INFO] [stdout]   11:     0x562e69e7c969 - dbus_codegen::generate::tests::from_policykit_asref_generic::{{closure}}::he4a7ec374ced2615
[INFO] [stdout]                                at src/generate.rs:930
[INFO] [stdout]   12:     0x562e69e7e49d - core::ops::function::FnOnce::call_once::h5c52dd291b5337a3
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/ops/function.rs:231
[INFO] [stdout]   13:     0x562e69e9bdce - <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once::h6b004fa8f4fc1608
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704
[INFO] [stdout]   14:     0x562e69f2eb79 - __rust_maybe_catch_panic
[INFO] [stdout]                                at src/libpanic_unwind/lib.rs:85
[INFO] [stdout]   15:     0x562e69eb66c7 - test::run_test::run_test_inner::{{closure}}::h9a4d23c41d058d37
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:272
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:394
[INFO] [stdout]                                at src/libtest/lib.rs:1468
[INFO] [stdout]   16:     0x562e69e910e4 - std::sys_common::backtrace::__rust_begin_short_backtrace::h3765d76361a33ff7
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/sys_common/backtrace.rs:136
[INFO] [stdout]   17:     0x562e69e95194 - std::panicking::try::do_call::h6f86e980b52f74d5
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/mod.rs:470
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:315
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:293
[INFO] [stdout]   18:     0x562e69f2eb79 - __rust_maybe_catch_panic
[INFO] [stdout]                                at src/libpanic_unwind/lib.rs:85
[INFO] [stdout]   19:     0x562e69e957a1 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h760b8a2b155f54c3
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:272
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:394
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/mod.rs:469
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/ops/function.rs:231
[INFO] [stdout]   20:     0x562e69f1fece - <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once::h805c3cc89d534c05
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704
[INFO] [stdout]   21:     0x562e69f2e25f - std::sys::unix::thread::Thread::new::thread_start::h6f10b78f26c98dc6
[INFO] [stdout]                                at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704
[INFO] [stdout]                                at src/libstd/sys_common/thread.rs:13
[INFO] [stdout]                                at src/libstd/sys/unix/thread.rs:79
[INFO] [stdout]   22:     0x7f5feae594a3 - start_thread
[INFO] [stdout]   23:     0x7f5fea984d0e - __clone
[INFO] [stdout]   24:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     generate::tests::from_policykit
[INFO] [stdout]     generate::tests::from_policykit_asref_generic
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 1 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass '--lib'
[INFO] running `"docker" "inspect" "a6417b513aa47e8dfea399b3af3c0e0ef8071c408c5aec64f675dd2adf116b7b"`
[INFO] running `"docker" "rm" "-f" "a6417b513aa47e8dfea399b3af3c0e0ef8071c408c5aec64f675dd2adf116b7b"`
[INFO] [stdout] a6417b513aa47e8dfea399b3af3c0e0ef8071c408c5aec64f675dd2adf116b7b
