pub enum Error<SPI: SpiBus> {
PecError,
SpiError(SPI::Error),
}Expand description
Error Types returned by functions of Ltc681xSpi
Variants§
PecError
Data Read back from the Chip has a non matching PEC
SpiError(SPI::Error)
Wraps all internal SPI Errors emitted by the used SPI implementation
Trait Implementations§
impl<SPI: Copy + SpiBus> Copy for Error<SPI>
Auto Trait Implementations§
impl<SPI> Freeze for Error<SPI>
impl<SPI> RefUnwindSafe for Error<SPI>
impl<SPI> Send for Error<SPI>
impl<SPI> Sync for Error<SPI>
impl<SPI> Unpin for Error<SPI>
impl<SPI> UnsafeUnpin for Error<SPI>
impl<SPI> UnwindSafe for Error<SPI>
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