bluez_generated/
healthmanager1.rs1#[allow(unused_imports)]
3use dbus::arg;
4use dbus::nonblock;
5
6pub trait OrgBluezHealthManager1 {
7 fn create_application(
8 &self,
9 config: arg::PropMap,
10 ) -> nonblock::MethodReply<dbus::Path<'static>>;
11 fn destroy_application(&self, application: dbus::Path) -> nonblock::MethodReply<()>;
12}
13
14pub const ORG_BLUEZ_HEALTH_MANAGER1_NAME: &str = "org.bluez.HealthManager1";
15
16impl<'a, T: nonblock::NonblockReply, C: ::std::ops::Deref<Target = T>> OrgBluezHealthManager1
17 for nonblock::Proxy<'a, C>
18{
19 fn create_application(
20 &self,
21 config: arg::PropMap,
22 ) -> nonblock::MethodReply<dbus::Path<'static>> {
23 self.method_call("org.bluez.HealthManager1", "CreateApplication", (config,))
24 .and_then(|r: (dbus::Path<'static>,)| Ok(r.0))
25 }
26
27 fn destroy_application(&self, application: dbus::Path) -> nonblock::MethodReply<()> {
28 self.method_call(
29 "org.bluez.HealthManager1",
30 "DestroyApplication",
31 (application,),
32 )
33 }
34}