pub enum Error<I2cE>where
I2cE: Error,{
I2c(I2cE),
ChipNotDetected,
BadCrc,
}Expand description
All possible errors generated when using the Qmp6988 struct
Variants§
I2c(I2cE)
I²C bus error
ChipNotDetected
The QMP6988 chip has not been detected
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