[−][src]Struct systemstat::platform::linux::PlatformImpl
Trait Implementations
impl Platform for PlatformImpl[src]
An implementation of Platform for Linux.
See Platform for documentation.
fn new() -> Self[src]
fn cpu_load(&self) -> Result<DelayedMeasurement<Vec<CPULoad>>>[src]
fn load_average(&self) -> Result<LoadAverage>[src]
fn memory(&self) -> Result<Memory>[src]
fn uptime(&self) -> Result<Duration>[src]
fn battery_life(&self) -> Result<BatteryLife>[src]
fn on_ac_power(&self) -> Result<bool>[src]
fn mounts(&self) -> Result<Vec<Filesystem>>[src]
fn mount_at<P: AsRef<Path>>(&self, path: P) -> Result<Filesystem>[src]
fn block_device_statistics(&self) -> Result<BTreeMap<String, BlockDeviceStats>>[src]
fn networks(&self) -> Result<BTreeMap<String, Network>>[src]
fn network_stats(&self, interface: &str) -> Result<NetworkStats>[src]
fn cpu_temp(&self) -> Result<f32>[src]
fn socket_stats(&self) -> Result<SocketStats>[src]
fn cpu_load_aggregate(&self) -> Result<DelayedMeasurement<CPULoad>>[src]
Returns a delayed CPU load statistics object, average over all CPUs (cores). Read more
fn boot_time(&self) -> Result<DateTime<Utc>>[src]
Returns the system boot time.
Auto Trait Implementations
impl Send for PlatformImpl
impl Sync for PlatformImpl
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,