Function procfs::net::dev_status
source · pub fn dev_status() -> ProcResult<HashMap<String, DeviceStatus>>
Expand description
Returns basic network device statistics for all interfaces
This data is from the /proc/net/dev
file.
For an example, see the interface_stats.rs example in the source repo.