bluez_generated/
agentmanager1.rs1#[allow(unused_imports)]
3use dbus::arg;
4use dbus::nonblock;
5
6pub trait OrgBluezAgentManager1 {
7 fn register_agent(&self, agent: dbus::Path, capability: &str) -> nonblock::MethodReply<()>;
8 fn unregister_agent(&self, agent: dbus::Path) -> nonblock::MethodReply<()>;
9 fn request_default_agent(&self, agent: dbus::Path) -> nonblock::MethodReply<()>;
10}
11
12pub const ORG_BLUEZ_AGENT_MANAGER1_NAME: &str = "org.bluez.AgentManager1";
13
14impl<'a, T: nonblock::NonblockReply, C: ::std::ops::Deref<Target = T>> OrgBluezAgentManager1
15 for nonblock::Proxy<'a, C>
16{
17 fn register_agent(&self, agent: dbus::Path, capability: &str) -> nonblock::MethodReply<()> {
18 self.method_call(
19 "org.bluez.AgentManager1",
20 "RegisterAgent",
21 (agent, capability),
22 )
23 }
24
25 fn unregister_agent(&self, agent: dbus::Path) -> nonblock::MethodReply<()> {
26 self.method_call("org.bluez.AgentManager1", "UnregisterAgent", (agent,))
27 }
28
29 fn request_default_agent(&self, agent: dbus::Path) -> nonblock::MethodReply<()> {
30 self.method_call("org.bluez.AgentManager1", "RequestDefaultAgent", (agent,))
31 }
32}