pub enum Error<E> {
I2c(E),
UnexpectedChipId(u16),
OpModeNotCorrect(u8),
}Expand description
All possible errors Display not implemented for no_std support
Variants§
I2c(E)
Error during I2C write/read operation.
UnexpectedChipId(u16)
Got an unexpected Part Id during sensor initalization.
OpModeNotCorrect(u8)
unexpected Operation Mode
Trait Implementations§
impl<E: Copy> Copy for Error<E>
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> 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