pub enum TransferError<SPIError, PinError> {
Spi(SPIError),
Pin(PinError),
CommunicationError(u8),
MaximumRetries,
}Expand description
Errors that can occur when sending and receiving data.
Variants§
Spi(SPIError)
SPI communication error
Pin(PinError)
Pin set error
CommunicationError(u8)
Communication error with module
MaximumRetries
Max retries reached
Trait Implementations§
Source§impl<SPIError: Clone, PinError: Clone> Clone for TransferError<SPIError, PinError>
impl<SPIError: Clone, PinError: Clone> Clone for TransferError<SPIError, PinError>
Source§fn clone(&self) -> TransferError<SPIError, PinError>
fn clone(&self) -> TransferError<SPIError, PinError>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<SPIError: Copy, PinError: Copy> Copy for TransferError<SPIError, PinError>
Auto Trait Implementations§
impl<SPIError, PinError> Freeze for TransferError<SPIError, PinError>
impl<SPIError, PinError> RefUnwindSafe for TransferError<SPIError, PinError>where
SPIError: RefUnwindSafe,
PinError: RefUnwindSafe,
impl<SPIError, PinError> Send for TransferError<SPIError, PinError>
impl<SPIError, PinError> Sync for TransferError<SPIError, PinError>
impl<SPIError, PinError> Unpin for TransferError<SPIError, PinError>
impl<SPIError, PinError> UnwindSafe for TransferError<SPIError, PinError>where
SPIError: UnwindSafe,
PinError: 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