[][src]Enum bluenrg::Error

pub enum Error<SpiError, GpioError> {
    Spi(SpiError),
    Gpio(GpioError),
}

Enumeration of potential errors that may occur when reading from or writing to the chip.

Variants

Spi(SpiError)

SPI errors occur if there is an underlying error during a transfer.

Gpio(GpioError)

GPIO errors occur if there is an underlying error resetting the pin, setting the chip select pin, or reading if data is available.

Trait Implementations

impl<SpiError: Debug, GpioError: Debug> Debug for Error<SpiError, GpioError>[src]

impl<SpiError: PartialEq, GpioError: PartialEq> PartialEq<Error<SpiError, GpioError>> for Error<SpiError, GpioError>[src]

impl<SpiError, GpioError> StructuralPartialEq for Error<SpiError, GpioError>[src]

Auto Trait Implementations

impl<SpiError, GpioError> Send for Error<SpiError, GpioError> where
    GpioError: Send,
    SpiError: Send

impl<SpiError, GpioError> Sync for Error<SpiError, GpioError> where
    GpioError: Sync,
    SpiError: Sync

impl<SpiError, GpioError> Unpin for Error<SpiError, GpioError> where
    GpioError: Unpin,
    SpiError: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.