pub struct BME280Sensor<'a, T: I2c> { /* private fields */ }Implementations§
Source§impl<'a, T: I2c> BME280Sensor<'a, T>
impl<'a, T: I2c> BME280Sensor<'a, T>
pub fn new(i2c: &'a mut T, address: u8) -> Self
pub async fn setup( &mut self, sampling_configuration: SamplingConfiguration, ) -> Result<(), BME280Error>
pub async fn read(&mut self) -> Result<BME280Response, BME280Error>
Auto Trait Implementations§
impl<'a, T> Freeze for BME280Sensor<'a, T>
impl<'a, T> RefUnwindSafe for BME280Sensor<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for BME280Sensor<'a, T>where
T: Send,
impl<'a, T> Sync for BME280Sensor<'a, T>where
T: Sync,
impl<'a, T> Unpin for BME280Sensor<'a, T>
impl<'a, T> !UnwindSafe for BME280Sensor<'a, T>
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