[][src]Struct si7021::Si7021

pub struct Si7021<T> { /* fields omitted */ }

Read temperature and relative humidity from a Si7021

Methods

impl<T> Si7021<T> where
    T: I2CDevice
[src]

pub fn new(device: T) -> Si7021<T>[src]

Create a new instance wrapping the given I2CDevice.

pub fn last_temperature(&mut self) -> Result<f32, T::Error>[src]

Every humidity measurement measures the temperature first. Use this function to read the most recently measured temperature.

Trait Implementations

impl<T: Clone> Clone for Si7021<T>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for Si7021<T>[src]

impl<T> Thermometer for Si7021<T> where
    T: I2CDevice
[src]

type Error = T::Error

impl<T> Hygrometer for Si7021<T> where
    T: I2CDevice
[src]

type Error = T::Error

Auto Trait Implementations

impl<T> Send for Si7021<T> where
    T: Send

impl<T> Sync for Si7021<T> where
    T: Sync

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.