pub enum Error<E> {
Bus(E),
InvalidDevice(u8),
NotCalibrated,
Timeout,
}Expand description
Errors returned by the BME680 driver.
Variants§
Bus(E)
Error from the underlying I2C bus.
InvalidDevice(u8)
The chip ID register (0xD0) did not read CHIP_ID. The payload is
the value that was read.
NotCalibrated
A measurement was requested before the calibration data had been read.
Call init first.
Timeout
The sensor did not report a new measurement within the driver’s polling limit.
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for Error<E>where
E: Freeze,
impl<E> RefUnwindSafe for Error<E>where
E: RefUnwindSafe,
impl<E> Send for Error<E>where
E: Send,
impl<E> Sync for Error<E>where
E: Sync,
impl<E> Unpin for Error<E>where
E: Unpin,
impl<E> UnsafeUnpin for Error<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for Error<E>where
E: 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