pub enum Error<I2cE>where
I2cE: Error,{
I2c(I2cE),
ChipNotDetected,
InvalidProduct,
FeatureNotSupported,
BadCrc,
}Expand description
All possible errors generated when using the Sgp30 struct
Variants§
I2c(I2cE)
I²C bus error
ChipNotDetected
The SGP30 chip has not been detected
InvalidProduct
The detected chip is an invalid product, either it has an invalid product type, or an invalid product version
FeatureNotSupported
The operation that is asked for is not supported by this version of the sensor.
BadCrc
The computed CRC and the one sent by the device mismatch
Trait Implementations§
Auto Trait Implementations§
impl<I2cE> Freeze for Error<I2cE>where
I2cE: Freeze,
impl<I2cE> RefUnwindSafe for Error<I2cE>where
I2cE: RefUnwindSafe,
impl<I2cE> Send for Error<I2cE>where
I2cE: Send,
impl<I2cE> Sync for Error<I2cE>where
I2cE: Sync,
impl<I2cE> Unpin for Error<I2cE>where
I2cE: Unpin,
impl<I2cE> UnwindSafe for Error<I2cE>where
I2cE: 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