Struct sysinfo::Component

source ·
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§

Returns the temperature of the component (in celsius degree). Read more
Returns the maximum temperature of the component (in celsius degree). Read more
Returns the highest temperature before the component halts (in celsius degree). Read more
Returns the label of the component. Read more
Refreshes component. Read more
Formats the value using the given formatter. Read more

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 alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
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.