pub enum Error<SpiErr, PinErr> {
Spi(SpiErr),
Drdy(PinErr),
Timeout,
AdcFault {
status: u8,
},
}Expand description
Driver errors.
Variants§
Spi(SpiErr)
Drdy(PinErr)
Timeout
AdcFault
Optional policy hook for callers (e.g., status shows ERR/NOREF).
Trait Implementations§
Auto Trait Implementations§
impl<SpiErr, PinErr> Freeze for Error<SpiErr, PinErr>
impl<SpiErr, PinErr> RefUnwindSafe for Error<SpiErr, PinErr>where
SpiErr: RefUnwindSafe,
PinErr: RefUnwindSafe,
impl<SpiErr, PinErr> Send for Error<SpiErr, PinErr>
impl<SpiErr, PinErr> Sync for Error<SpiErr, PinErr>
impl<SpiErr, PinErr> Unpin for Error<SpiErr, PinErr>
impl<SpiErr, PinErr> UnwindSafe for Error<SpiErr, PinErr>where
SpiErr: UnwindSafe,
PinErr: 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