Struct sinfo::SystemInfo

source ·
pub struct SystemInfo {
    pub cpu_temp: f32,
    pub gpu_temp: Option<f32>,
    pub cpu_time: Vec<usize>,
    pub mem_free: Memory,
    pub uptime: f64,
}
Expand description

Stores CPU and GPU temperature, CPU time since boot, free RAM and swap, and uptime.

Fields§

§cpu_temp: f32§gpu_temp: Option<f32>§cpu_time: Vec<usize>§mem_free: Memory§uptime: f64

Implementations§

Returns an object containing system information. gpu controls whether GPU temperature is to be checked, which only works for Raspberry Pi. num_cpus is the number of CPUs and can be supplied with SystemInfo::get_num_cpus.

Returns the number of CPU(s)

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.