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.
Note that this returns information from the networking namespace of the current process. If you want information for some otherr process, see Process::dev_status()