network_interface/lib.rs
1mod error;
2mod interface;
3mod target;
4mod test;
5
6mod utils;
7
8pub use error::*;
9pub use interface::*;
10
11pub type Result<T> = std::result::Result<T, error::Error>;
12
13pub trait NetworkInterfaceConfig {
14 /// List system's network interfaces configuration
15 fn show() -> Result<Vec<interface::NetworkInterface>>;
16}