pub enum Error<E> {
I2c(E),
InvalidChipId(u8),
InvalidMode,
AccConfig(Error),
}
Expand description
All possible errors in this crate
Variants§
I2c(E)
I2C bus error
InvalidChipId(u8)
Invalid chip ID was read
InvalidMode
Invalid (not applicable) device mode.
AccConfig(Error)
Accelerometer configuration error
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