rtopm 0.1.0

A modern TUI system resource monitor with Docker and disk I/O tracking
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[derive(Debug, Clone, Default)]
#[allow(dead_code)]
pub struct NetworkData {
    pub interface: String,
    pub recv_bytes_per_sec: f64,
    pub sent_bytes_per_sec: f64,
    pub total_recv_bytes: u64,
    pub total_sent_bytes: u64,
}

#[derive(Debug, Clone)]
pub struct NetworkInterface {
    pub name: String,
    pub is_up: bool,
    pub is_loopback: bool,
    pub ip_address: Option<String>,
}