Skip to main content

InterfaceStatsProvider

Trait InterfaceStatsProvider 

Source
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§

Source

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".

Implementors§