pub enum Vs1003InterfaceError<ESpi, EDreq> {
Spi(ESpi),
Dreq(EDreq),
Busy,
}Expand description
The error type that can be returned by various interface APIs
Variants§
Spi(ESpi)
The SPI peripheral has failed to compelte a transfer
Dreq(EDreq)
The Digital input failed to provide a value
Busy
The DREQ signal is low and the command cannot be sent
Trait Implementations§
Source§impl<ESpi, EDreq> Display for Vs1003InterfaceError<ESpi, EDreq>
impl<ESpi, EDreq> Display for Vs1003InterfaceError<ESpi, EDreq>
Source§impl<ESpi, EDreq> Error for Vs1003InterfaceError<ESpi, EDreq>
impl<ESpi, EDreq> Error for Vs1003InterfaceError<ESpi, EDreq>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl<ESpi, EDreq> Freeze for Vs1003InterfaceError<ESpi, EDreq>
impl<ESpi, EDreq> RefUnwindSafe for Vs1003InterfaceError<ESpi, EDreq>where
ESpi: RefUnwindSafe,
EDreq: RefUnwindSafe,
impl<ESpi, EDreq> Send for Vs1003InterfaceError<ESpi, EDreq>
impl<ESpi, EDreq> Sync for Vs1003InterfaceError<ESpi, EDreq>
impl<ESpi, EDreq> Unpin for Vs1003InterfaceError<ESpi, EDreq>
impl<ESpi, EDreq> UnsafeUnpin for Vs1003InterfaceError<ESpi, EDreq>where
ESpi: UnsafeUnpin,
EDreq: UnsafeUnpin,
impl<ESpi, EDreq> UnwindSafe for Vs1003InterfaceError<ESpi, EDreq>where
ESpi: UnwindSafe,
EDreq: 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