pub enum Error<E> {
I2c(E),
DeviceNotFound,
InvalidAddress,
InvalidParameter,
OutOfRange,
Timeout,
DataError,
}Expand description
Error type for Modulino operations.
Variants§
I2c(E)
I2C communication error
DeviceNotFound
Device not found on the I2C bus
InvalidAddress
Invalid address provided
InvalidParameter
Invalid parameter value
OutOfRange
Value out of range
Timeout
Operation timed out
DataError
Data transmission error
Trait Implementations§
impl<E: Copy> Copy for Error<E>
impl<E: Eq> Eq for Error<E>
impl<E> StructuralPartialEq 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