[−][src]Struct si7021::Si7021
Read temperature and relative humidity from a Si7021
Methods
impl<T> Si7021<T> where
T: I2CDevice,
[src]
T: I2CDevice,
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(&self) -> 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]
T: I2CDevice,
impl<T> Hygrometer for Si7021<T> where
T: I2CDevice,
[src]
T: I2CDevice,
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,