1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
use dbus;
#[allow(unused_imports)]
use dbus::arg;
use dbus::nonblock;
pub trait OrgBluezProfileManager1 {
fn register_profile(
&self,
profile: dbus::Path,
uuid: &str,
options: ::std::collections::HashMap<&str, arg::Variant<Box<dyn arg::RefArg>>>,
) -> nonblock::MethodReply<()>;
fn unregister_profile(&self, profile: dbus::Path) -> nonblock::MethodReply<()>;
}
impl<'a, T: nonblock::NonblockReply, C: ::std::ops::Deref<Target = T>> OrgBluezProfileManager1
for nonblock::Proxy<'a, C>
{
fn register_profile(
&self,
profile: dbus::Path,
uuid: &str,
options: ::std::collections::HashMap<&str, arg::Variant<Box<dyn arg::RefArg>>>,
) -> nonblock::MethodReply<()> {
self.method_call(
"org.bluez.ProfileManager1",
"RegisterProfile",
(profile, uuid, options),
)
}
fn unregister_profile(&self, profile: dbus::Path) -> nonblock::MethodReply<()> {
self.method_call("org.bluez.ProfileManager1", "UnregisterProfile", (profile,))
}
}