nettui 0.2.0

Unified TUI for Wi-Fi and Ethernet
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::domain::ethernet::EthernetIface;
use anyhow::Result;

#[derive(Debug, Clone)]
pub struct CommandResult {
    pub program: String,
    pub args: Vec<String>,
    pub used_sudo: bool,
    pub status: i32,
    pub stdout: String,
    pub stderr: String,
}

pub trait EthernetBackend {
    fn list_ifaces(&self) -> Result<Vec<EthernetIface>>;
}