#[non_exhaustive]pub enum ErrorKind {
Overrun,
ModeFault,
FrameFormat,
ChipSelectFault,
Other,
}
Expand description
SPI error kind.
This represents a common set of SPI operation errors. HAL implementations are free to define more specific or additional error types. However, by providing a mapping to these common SPI errors, generic code can still react to them.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Overrun
The peripheral receive buffer was overrun.
ModeFault
Multiple devices on the SPI bus are trying to drive the slave select pin, e.g. in a multi-master setup.
FrameFormat
Received data does not conform to the peripheral configuration.
ChipSelectFault
An error occurred while asserting or deasserting the Chip Select pin.
Other
A different error occurred. The original error may contain more information.
Trait Implementations§
Source§impl Ord for ErrorKind
impl Ord for ErrorKind
Source§impl PartialOrd for ErrorKind
impl PartialOrd for ErrorKind
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Overrun
: 0 bytesModeFault
: 0 bytesFrameFormat
: 0 bytesChipSelectFault
: 0 bytesOther
: 0 bytes