wayle-sysinfo 0.1.2

CPU, memory, disk, and network metrics
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Network interface metrics.
#[derive(Debug, Clone, PartialEq)]
pub struct NetworkData {
    /// Interface name (e.g., "eth0", "wlan0").
    pub interface: String,

    /// Bytes received since last poll.
    pub rx_bytes: u64,

    /// Bytes transmitted since last poll.
    pub tx_bytes: u64,

    /// Receive rate in bytes per second.
    pub rx_bytes_per_sec: u64,

    /// Transmit rate in bytes per second.
    pub tx_bytes_per_sec: u64,
}