pub enum BmeError<I2C>where
I2C: ErrorType,{
WriteError(I2C::Error),
WriteReadError(I2C::Error),
UnexpectedChipId(u8),
MeasuringTimeOut,
Uninitialized,
}Expand description
All possible errors
Variants§
WriteError(I2C::Error)
Error during I2C write operation.
WriteReadError(I2C::Error)
Error during I2C WriteRead operation.
UnexpectedChipId(u8)
Got an unexpected ChipId during sensor initalization.
MeasuringTimeOut
After running the measurment the sensor blocks until the ‘new data bit’ of the sensor is set. Should this take more than 5 tries an error is returned instead of incorrect data.
Uninitialized
Available on crate feature
embedded-hal-async only.An AsyncBme680 has not yet been initialized.
Trait Implementations§
Auto Trait Implementations§
impl<I2C> Freeze for BmeError<I2C>
impl<I2C> RefUnwindSafe for BmeError<I2C>
impl<I2C> Send for BmeError<I2C>
impl<I2C> Sync for BmeError<I2C>
impl<I2C> Unpin for BmeError<I2C>
impl<I2C> UnwindSafe for BmeError<I2C>
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