wayle-network 0.1.2

WiFi and wired network management
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! NetworkManager 6LoWPAN Device interface.

use zbus::{proxy, zvariant::OwnedObjectPath};

#[proxy(
    default_service = "org.freedesktop.NetworkManager",
    interface = "org.freedesktop.NetworkManager.Device.Lowpan"
)]
pub(crate) trait DeviceLowpan {
    /// Hardware address of the device.
    #[zbus(property)]
    fn hw_address(&self) -> zbus::Result<String>;

    /// The object path of the parent device.
    #[zbus(property)]
    fn parent(&self) -> zbus::Result<OwnedObjectPath>;
}