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
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnwindSafe for Component
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more