pub trait ErrorType {
    type Error: Error;
}
Expand description

SPI error type trait.

This just defines the error type, to be used by the other SPI traits.

Required Associated Types§

source

type Error: Error

Error type.

Implementations on Foreign Types§

source§

impl<T: ErrorType + ?Sized> ErrorType for &mut T

§

type Error = <T as ErrorType>::Error

Implementors§

impl<H, SPI, SCLKPIN, MOSIPIN, MISOPIN, CSPIN> ErrorType for Spi<H, SPI, SCLKPIN, MOSIPIN, MISOPIN, CSPIN>
where SPI: SpiOps<H, SCLKPIN, MOSIPIN, MISOPIN, CSPIN>, SCLKPIN: PinOps, MOSIPIN: PinOps, MISOPIN: PinOps, CSPIN: PinOps,

impl<'a, BUS, CS, D> ErrorType for CriticalSectionDevice<'a, BUS, CS, D>
where BUS: ErrorType, CS: OutputPin,

impl<'a, BUS, CS, D> ErrorType for RefCellDevice<'a, BUS, CS, D>
where BUS: ErrorType, CS: OutputPin,

impl<BUS, CS, D> ErrorType for ExclusiveDevice<BUS, CS, D>
where BUS: ErrorType, CS: OutputPin,