ntw 0.2.1

A macOS network toolkit providing live speed metrics and simple interface management.
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[cfg(target_os = "macos")]
pub fn default_iface() -> String {
    use crate::platform::macos::get_active_interface;

    get_active_interface().unwrap_or_else(|| "en0".to_string())
}

#[cfg(not(target_os = "macos"))]
pub fn default_iface() -> String {
    "eth0".to_string()
}