pub enum DrvError<SpiErr> {
Spi(SpiErr),
FrameError,
NotSupported(&'static str),
}Variants§
Trait Implementations§
Source§impl<SpiErr> Error for DrvError<SpiErr>
impl<SpiErr> Error for DrvError<SpiErr>
1.30.0 · 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<SpiErr> Freeze for DrvError<SpiErr>where
SpiErr: Freeze,
impl<SpiErr> RefUnwindSafe for DrvError<SpiErr>where
SpiErr: RefUnwindSafe,
impl<SpiErr> Send for DrvError<SpiErr>where
SpiErr: Send,
impl<SpiErr> Sync for DrvError<SpiErr>where
SpiErr: Sync,
impl<SpiErr> Unpin for DrvError<SpiErr>where
SpiErr: Unpin,
impl<SpiErr> UnwindSafe for DrvError<SpiErr>where
SpiErr: 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