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 Generic Device interface.

use zbus::proxy;

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

    /// A descriptive name for the device type.
    #[zbus(property)]
    fn type_description(&self) -> zbus::Result<String>;
}