[][src]Struct acpi_client::thermal_zone::ThermalSensor

pub struct ThermalSensor {
    pub name: String,
    pub current_temperature: f32,
    pub units: Units,
    pub trip_points: Vec<TripPoint>,
}

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.