list_interfaces/
list_interfaces.rs

1// Copyright 2018 MaidSafe.net limited.
2//
3// This SAFE Network Software is licensed to you under the MIT license <LICENSE-MIT
4// http://opensource.org/licenses/MIT> or the Modified BSD license <LICENSE-BSD
5// https://opensource.org/licenses/BSD-3-Clause>, at your option. This file may not be copied,
6// modified, or distributed except according to those terms. Please review the Licences for the
7// specific language governing permissions and limitations relating to use of the SAFE Network
8// Software.
9
10//! List interface example.
11
12fn main() {
13    let ifaces = if_addrs::get_if_addrs().unwrap();
14    println!("Got list of interfaces");
15    println!("{:#?}", ifaces);
16}