// Copyright (c) 2014, 2015 Robert Clipsham // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. /// This examples simply print all interfaces to stdout extern crate pnet_datalink; fn main() { for interface in pnet_datalink::interfaces() { println!("{}", interface); } }