Function if_addrs::get_if_addrs

source ·
pub fn get_if_addrs() -> Result<Vec<Interface>>
Expand description

Get address

Examples found in repository?
examples/list_interfaces.rs (line 15)
14
15
16
17
18
fn main() {
    let ifaces = if_addrs::get_if_addrs().unwrap();
    println!("Got list of interfaces");
    println!("{:#?}", ifaces);
}