Skip to main content

Module interface_stats

Module interface_stats 

Source

Structs§

InterfaceRates
Rate calculations for interface statistics
InterfaceStats
Statistics for a network interface
InterfaceTrafficWindow
Traffic transferred over a rolling interface-counter window.

Traits§

InterfaceStatsProvider
Trait for platform-specific interface statistics providers

Functions§

create_stats_provider
Create the interface-stats provider for the current platform: sysfs on Linux, getifaddrs on macOS/FreeBSD, the IP Helper API on Windows. The composition point for front-ends, mirroring rustnet_host::create_process_lookup.