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