[−][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 boot_time(&self) -> Result<DateTime<Utc>>
[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]
Auto Trait Implementations
impl Send for PlatformImpl
impl Unpin for PlatformImpl
impl Sync for PlatformImpl
impl UnwindSafe for PlatformImpl
impl RefUnwindSafe for PlatformImpl
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,