pub trait Bme280BusAsync {
type Error;
// Required methods
async fn read_regs(
&mut self,
reg: u8,
buf: &mut [u8],
) -> Result<(), Self::Error>;
async fn write_reg(&mut self, reg: u8, data: u8) -> Result<(), Self::Error>;
// Provided method
async fn calibration(&mut self) -> Result<Calibration, Self::Error> { ... }
}Expand description
Asynchronous BME280 bus.
Required Associated Types§
Required Methods§
Provided Methods§
Sourceasync fn calibration(&mut self) -> Result<Calibration, Self::Error>
async fn calibration(&mut self) -> Result<Calibration, Self::Error>
Read the calibration from the chip.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.