[−][src]Struct acpi_client::thermal_zone::ThermalSensor
Information about a zone monitored by a temperature sensor.
Fields
name: String
The name used by ACPI to refer to the sensor.
current_temperature: f32
The current temperature measured by the sensor.
units: Units
The units of the temperature data.
trip_points: Vec<TripPoint>
A list of the trip points configured for the zone.
Methods
impl ThermalSensor
[src]
pub fn new(path: &Path, units: Units) -> Result<ThermalSensor, Box<dyn Error>>
[src]
Create a new thermal sensor object from data from the ACPI subsystem.
Arguments
path
- The path to the ACPI device.
Auto Trait Implementations
impl RefUnwindSafe for ThermalSensor
impl Send for ThermalSensor
impl Sync for ThermalSensor
impl Unpin for ThermalSensor
impl UnwindSafe for ThermalSensor
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,