Function mprober_lib::network::get_networks [−][src]
pub fn get_networks() -> Result<Vec<Network>, ScannerError>
Get network information by reading the /proc/net/dev
file.
extern crate mprober_lib; use mprober_lib::network; let networks = network::get_networks().unwrap(); println!("{:#?}", networks);