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