pub trait InterfaceStatsProvider: Send + Sync {
// Required method
fn get_all_stats(&self) -> Result<Vec<InterfaceStats>, Error>;
}Expand description
Trait for platform-specific interface statistics providers
Required Methods§
Sourcefn get_all_stats(&self) -> Result<Vec<InterfaceStats>, Error>
fn get_all_stats(&self) -> Result<Vec<InterfaceStats>, Error>
Get statistics for all available interfaces
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".