[−][src]Enum spi_memory::Error
The error type used by this library.
This can encapsulate an SPI or GPIO error, and adds its own protocol errors on top of that.
Variants
Spi(SPI::Error)
An SPI transfer failed.
Gpio(GPIO::Error)
A GPIO could not be set.
Status register contained unexpected flags.
This can happen when the chip is faulty, incorrectly connected, or the driver wasn't constructed or destructed properly (eg. while there is still a write in progress).
Trait Implementations
impl<SPI: Transfer<u8>, GPIO: OutputPin> Debug for Error<SPI, GPIO> where
SPI::Error: Debug,
GPIO::Error: Debug,
[src]
SPI::Error: Debug,
GPIO::Error: Debug,
Auto Trait Implementations
impl<SPI, GPIO> Send for Error<SPI, GPIO> where
<GPIO as OutputPin>::Error: Send,
<SPI as Transfer<u8>>::Error: Send,
<GPIO as OutputPin>::Error: Send,
<SPI as Transfer<u8>>::Error: Send,
impl<SPI, GPIO> Sync for Error<SPI, GPIO> where
<GPIO as OutputPin>::Error: Sync,
<SPI as Transfer<u8>>::Error: Sync,
<GPIO as OutputPin>::Error: Sync,
<SPI as Transfer<u8>>::Error: Sync,
impl<SPI, GPIO> Unpin for Error<SPI, GPIO> where
<GPIO as OutputPin>::Error: Unpin,
<SPI as Transfer<u8>>::Error: Unpin,
<GPIO as OutputPin>::Error: Unpin,
<SPI as Transfer<u8>>::Error: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,