[][src]Struct acpi_client::thermal_zone::TripPoint

pub struct TripPoint {
    pub number: u8,
    pub action_type: String,
    pub temperature: f32,
    pub units: Units,
}

Information about the temperature at which the system takes action to reduce the temperature of a thermal zone.

Fields

number: u8

A numerical identifier for the trip point.

action_type: String

The type of action the system takes when the trip point is reached.

temperature: f32

The temperature marked as a threshold.

units: Units

The units of the temperature data.

Methods

impl TripPoint[src]

pub fn new(
    path: &Path,
    number: u8,
    units: Units
) -> Result<TripPoint, AcpiClientError>
[src]

Create a new trip point object from data from the ACPI subsystem.

Arguments

  • path - The path to the ACPI device trip points are configured for.
  • number - The numerical id of the trip point.
  • units - The units to convert the temperature data to.

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 = Infallible

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.