nmrs 2.3.0

A Rust library for NetworkManager over D-Bus
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! NetworkManager Wired (Ethernet) Device Proxy

use zbus::Result;
use zbus::proxy;

/// Proxy for wired devices (Ethernet).
///
/// Provides access to wired-specific properties like carrier status.
#[proxy(
    interface = "org.freedesktop.NetworkManager.Device.Wired",
    default_service = "org.freedesktop.NetworkManager"
)]
pub trait NMWired {
    /// Design speed of the device, in megabits/second (Mb/s).
    #[zbus(property)]
    fn speed(&self) -> Result<u32>;
}