pub enum Nrf24Error<SPI, DO> {
Spi(SPI),
Gpo(DO),
BinaryCorruption,
NotAsTxError,
}
Expand description
An collection of error types to describe hardware malfunctions.
Variants§
Spi(SPI)
Represents a SPI transaction error.
Gpo(DO)
Represents a DigitalOutput error.
BinaryCorruption
Represents a corruption of binary data (as it was transferred over the SPI bus’ MISO)
NotAsTxError
An Error used to prevent an infinite loop in RF24::send()
.
This only occurs when user code neglected to call RF24::as_tx()
at least once
before calling RF24::send()
.
Trait Implementations§
Source§impl<SPI: Clone, DO: Clone> Clone for Nrf24Error<SPI, DO>
impl<SPI: Clone, DO: Clone> Clone for Nrf24Error<SPI, DO>
Source§fn clone(&self) -> Nrf24Error<SPI, DO>
fn clone(&self) -> Nrf24Error<SPI, DO>
Returns a duplicate 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 moreSource§impl From<ErrorKind> for Nrf24Error<ErrorKind, ErrorKind>
impl From<ErrorKind> for Nrf24Error<ErrorKind, ErrorKind>
Source§fn from(value: OutputPinError) -> Self
fn from(value: OutputPinError) -> Self
Converts to this type from the input type.
impl<SPI: Copy, DO: Copy> Copy for Nrf24Error<SPI, DO>
impl<SPI, DO> StructuralPartialEq for Nrf24Error<SPI, DO>
Auto Trait Implementations§
impl<SPI, DO> Freeze for Nrf24Error<SPI, DO>
impl<SPI, DO> RefUnwindSafe for Nrf24Error<SPI, DO>where
SPI: RefUnwindSafe,
DO: RefUnwindSafe,
impl<SPI, DO> Send for Nrf24Error<SPI, DO>
impl<SPI, DO> Sync for Nrf24Error<SPI, DO>
impl<SPI, DO> Unpin for Nrf24Error<SPI, DO>
impl<SPI, DO> UnwindSafe for Nrf24Error<SPI, DO>where
SPI: UnwindSafe,
DO: 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