pub enum Aw9523Error<E> {
NotSupported(E),
InvalidArgument,
ReadError(E),
WriteError(E),
}Expand description
Errors that can occur when interacting with the AW9523
Variants§
NotSupported(E)
Operation not supported by the hardware
InvalidArgument
Invalid argument passed to a method (e.g., pin number out of range)
ReadError(E)
I2C read operation failed
WriteError(E)
I2C write operation failed
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for Aw9523Error<E>where
E: Freeze,
impl<E> RefUnwindSafe for Aw9523Error<E>where
E: RefUnwindSafe,
impl<E> Send for Aw9523Error<E>where
E: Send,
impl<E> Sync for Aw9523Error<E>where
E: Sync,
impl<E> Unpin for Aw9523Error<E>where
E: Unpin,
impl<E> UnwindSafe for Aw9523Error<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