1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use core::fmt::Debug; /// Wraps an SPI error /// /// TODO: eliminate this? #[derive(Debug)] pub enum Error<SPIE: Debug> { /// Wrap an SPI error SpiError(SPIE), } impl<SPIE: Debug> From<SPIE> for Error<SPIE> { fn from(e: SPIE) -> Self { Error::SpiError(e) } }