pub struct Aht2X<T> { /* private fields */ }Implementations§
Source§impl<T: I2c> Aht2X<T>
impl<T: I2c> Aht2X<T>
pub async fn setup<'a>( interface: &mut T, delay: &mut impl DelayNs, ) -> Result<Self, T::Error>
pub async fn status<'a>( &mut self, interface: &mut T, ) -> Result<Status, T::Error>
pub async fn measure<'a>( &mut self, interface: &mut T, delay: &mut impl DelayNs, ) -> Result<(HumidityData, TemperatureData), T::Error>
Auto Trait Implementations§
impl<T> Freeze for Aht2X<T>
impl<T> RefUnwindSafe for Aht2X<T>where
T: RefUnwindSafe,
impl<T> Send for Aht2X<T>where
T: Send,
impl<T> Sync for Aht2X<T>where
T: Sync,
impl<T> Unpin for Aht2X<T>where
T: Unpin,
impl<T> UnwindSafe for Aht2X<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more