Skip to main content

platform_sensor

Function platform_sensor 

Source
pub fn platform_sensor(iface: Option<String>) -> Box<dyn LinkSensor + Send>
Expand description

Construct the best link sensor for this platform. iface names the interface to watch (Linux); None auto-detects the first non-loopback up interface.