pub struct Component { /* private fields */ }
Expand description
Struct containing a component information (temperature and name for the moment).
Linux
More information can be found at kernel.org.
Note: these may not be present on virtual Linux systems, such as Docker
or Windows Subsystem for Linux. These hosts do not expose this information
and therefore Component
elements may be missing or not as expected.
Windows
Please note that on Windows, you need to have Administrator priviledges to get this information.
Trait Implementations§
source§impl ComponentExt for Component
impl ComponentExt for Component
source§fn temperature(&self) -> f32
fn temperature(&self) -> f32
Returns the temperature of the component (in celsius degree). Read more
source§fn max(&self) -> f32
fn max(&self) -> f32
Returns the maximum temperature of the component (in celsius degree). Read more