Struct systemstat::platform::linux::PlatformImpl
[−]
[src]
pub struct PlatformImpl;
Trait Implementations
impl Platform for PlatformImpl
[src]
An implementation of Platform
for Linux.
See Platform
for documentation.
fn new() -> Self
fn cpu_load(&self) -> Result<DelayedMeasurement<Vec<CPULoad>>>
Returns a delayed vector of CPU load statistics, one object per CPU (core). Read more
fn load_average(&self) -> Result<LoadAverage>
Returns a load average object.
fn memory(&self) -> Result<Memory>
Returns a memory information object.
fn battery_life(&self) -> Result<BatteryLife>
Returns a battery life information object.
fn on_ac_power(&self) -> Result<bool>
Returns whether AC power is plugged in.
fn mounts(&self) -> Result<Vec<Filesystem>>
Returns a vector of filesystem mount information objects.
fn mount_at<P: AsRef<Path>>(&self, path: P) -> Result<Filesystem>
Returns a filesystem mount information object for the filesystem at a given path.
fn networks(&self) -> Result<BTreeMap<String, Network>>
Returns a map of network intefrace information objects. Read more
fn cpu_load_aggregate(&self) -> Result<DelayedMeasurement<CPULoad>>
Returns a delayed CPU load statistics object, average over all CPUs (cores). Read more