pub enum Error<E> {
I2c(E),
Crc,
NotInitialized,
}
Expand description
All possible errors in this crate
Variants§
I2c(E)
I²C bus error
Crc
CRC checksum validation failed
NotInitialized
User tried to measure the air quality without starting the initialization phase.
Trait Implementations§
Auto Trait Implementations§
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> 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