1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
mod error;
mod interface;
mod target;

#[cfg(any(target_os = "linux", target_os = "macos"))]
mod utils;

pub use error::*;
pub use interface::*;

pub type Result<T> = std::result::Result<T, error::Error>;

pub trait NetworkInterfaceConfig {
    /// List system's network interfaces configuration
    fn show() -> Result<Vec<interface::NetworkInterface>>;
}