pub struct InitError<I>where
I: I2c,{
pub i2c: I,
pub error: Error<I>,
}Expand description
Error that occurs during sensor initialization.
Initialization can fail due to:
- I2C communication errors
- Wrong device connected (incorrect WHO_AM_I response)
- Power-on reset failure
- Configuration errors
Contains both the error and the I2C interface for error recovery.
Fields§
§i2c: I§error: Error<I>Trait Implementations§
Auto Trait Implementations§
impl<I> Freeze for InitError<I>
impl<I> RefUnwindSafe for InitError<I>
impl<I> Send for InitError<I>
impl<I> Sync for InitError<I>
impl<I> Unpin for InitError<I>
impl<I> UnwindSafe for InitError<I>
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