Enum lis3dh_async::Error
source · pub enum Error<BusError> {
Bus(BusError),
InvalidDataRate,
InvalidMode,
InvalidRange,
WriteToReadOnly,
WrongAddress,
}
Expand description
Accelerometer errors, generic around another error type E
representing
an (optional) cause of this error.
Variants§
Bus(BusError)
Bus error
InvalidDataRate
Invalid data rate selection
InvalidMode
Invalid operating mode selection
InvalidRange
Invalid full-scale selection
WriteToReadOnly
Attempted to write to a read-only register
WrongAddress
Invalid address provided
Trait Implementations§
Auto Trait Implementations§
impl<BusError> RefUnwindSafe for Error<BusError>where
BusError: RefUnwindSafe,
impl<BusError> Send for Error<BusError>where
BusError: Send,
impl<BusError> Sync for Error<BusError>where
BusError: Sync,
impl<BusError> Unpin for Error<BusError>where
BusError: Unpin,
impl<BusError> UnwindSafe for Error<BusError>where
BusError: 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