use dbus as dbus;
#[allow(unused_imports)]
use dbus::arg;
use dbus::blocking;
pub trait DeviceVlan {
fn hw_address(&self) -> Result<String, dbus::Error>;
fn carrier(&self) -> Result<bool, dbus::Error>;
fn parent(&self) -> Result<dbus::Path<'static>, dbus::Error>;
fn vlan_id(&self) -> Result<u32, dbus::Error>;
}
impl<'a, T: blocking::BlockingSender, C: ::std::ops::Deref<Target=T>> DeviceVlan 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.Vlan", "HwAddress")
}
fn carrier(&self) -> Result<bool, dbus::Error> {
<Self as blocking::stdintf::org_freedesktop_dbus::Properties>::get(&self, "org.freedesktop.NetworkManager.Device.Vlan", "Carrier")
}
fn parent(&self) -> Result<dbus::Path<'static>, dbus::Error> {
<Self as blocking::stdintf::org_freedesktop_dbus::Properties>::get(&self, "org.freedesktop.NetworkManager.Device.Vlan", "Parent")
}
fn vlan_id(&self) -> Result<u32, dbus::Error> {
<Self as blocking::stdintf::org_freedesktop_dbus::Properties>::get(&self, "org.freedesktop.NetworkManager.Device.Vlan", "VlanId")
}
}