[][src]Struct ds18b20::SensorData

pub struct SensorData {
    pub temperature: f32,
    pub resolution: Resolution,
    pub alarm_temp_low: i8,
    pub alarm_temp_high: i8,
}

All of the data that can be read from the sensor.

Fields

temperature: f32

Temperature in degrees Celsius. Defaults to 85 on startup

resolution: Resolution

The current resolution configuration

alarm_temp_low: i8

If the last recorded temperature is lower than this, the sensor is put in an alarm state

alarm_temp_high: i8

If the last recorded temperature is higher than this, the sensor is put in an alarm state

Trait Implementations

impl Debug for SensorData[src]

Auto Trait Implementations

impl Send for SensorData

impl Sync for SensorData

impl Unpin for SensorData

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.