pub enum Error<SPI> {
IndexOutOfBounds,
IoError,
Spi(SPI),
}Expand description
Custom Error type for this crate
Variants§
IndexOutOfBounds
Supplied index is out of bounds
IoError
Error from a GPIO pin operation (e.g., setting output state of LATCH or Output Enable pins).
Spi(SPI)
Error from SPI device communication
Trait Implementations§
Auto Trait Implementations§
impl<SPI> Freeze for Error<SPI>where
SPI: Freeze,
impl<SPI> RefUnwindSafe for Error<SPI>where
SPI: RefUnwindSafe,
impl<SPI> Send for Error<SPI>where
SPI: Send,
impl<SPI> Sync for Error<SPI>where
SPI: Sync,
impl<SPI> Unpin for Error<SPI>where
SPI: Unpin,
impl<SPI> UnwindSafe for Error<SPI>where
SPI: 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