1 2 3 4 5 6 7 8
use getifs::gateway_addrs; fn main() { let gateways = gateway_addrs().unwrap(); for gw in gateways { println!("Gateway: {gw}"); } }