Trait embedded_hal_async::spi::Error

source ·
pub trait Error: Debug {
    // Required method
    fn kind(&self) -> ErrorKind;
}
Expand description

SPI error

Required Methods§

source

fn kind(&self) -> ErrorKind

Convert error to a generic SPI error kind

By using this method, SPI errors freely defined by HAL implementations can be converted to a set of generic SPI errors upon which generic code can act.

Implementations on Foreign Types§

source§

impl Error for Infallible

source§

fn kind(&self) -> ErrorKind

Implementors§

source§

impl Error for ErrorKind

source§

impl<BUS, CS> Error for ExclusiveDeviceError<BUS, CS>
where BUS: Error + Debug, CS: Debug,