CurrentSI

Trait CurrentSI 

Source
pub trait CurrentSI: FromReadSI {
    const PATH: &'static str;

    // Provided methods
    fn current() -> ProcResult<Self> { ... }
    fn current_with_system_info(si: &SystemInfo) -> ProcResult<Self> { ... }
}
Expand description

Allows associating a specific file to parse with system information.

Required Associated Constants§

Source

const PATH: &'static str

Provided Methods§

Source

fn current() -> ProcResult<Self>

Parse the current value using the system file and the current system info.

Source

fn current_with_system_info(si: &SystemInfo) -> ProcResult<Self>

Parse the current value using the system file and the provided system info.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl CurrentSI for KernelStats

Source§

const PATH: &'static str = "/proc/stat"