use dbus;
#[allow(unused_imports)]
use dbus::arg;
use dbus::blocking;
pub trait OrgFreedesktopNetworkManagerDeviceBluetooth {
fn hw_address(&self) -> Result<String, dbus::Error>;
fn name(&self) -> Result<String, dbus::Error>;
fn bt_capabilities(&self) -> Result<u32, dbus::Error>;
}
impl<'a, T: blocking::BlockingSender, C: ::std::ops::Deref<Target = T>>
OrgFreedesktopNetworkManagerDeviceBluetooth for blocking::Proxy<'a, C>
{
fn hw_address(&self) -> Result<String, dbus::Error> {
<Self as blocking::stdintf::org_freedesktop_dbus::Properties>::get(
&self,
"org.freedesktop.NetworkManager.Device.Bluetooth",
"HwAddress",
)
}
fn name(&self) -> Result<String, dbus::Error> {
<Self as blocking::stdintf::org_freedesktop_dbus::Properties>::get(
&self,
"org.freedesktop.NetworkManager.Device.Bluetooth",
"Name",
)
}
fn bt_capabilities(&self) -> Result<u32, dbus::Error> {
<Self as blocking::stdintf::org_freedesktop_dbus::Properties>::get(
&self,
"org.freedesktop.NetworkManager.Device.Bluetooth",
"BtCapabilities",
)
}
}