[][src]Enum embedded_error::mci::MciError

#[non_exhaustive]pub enum MciError {
    DataError(CommandOrDataError),
    CommandInhibited,
    CommandError(CommandOrDataError),
    Adma,
    GroupBusy,
    CiaCouldNotFindTuple,
    IncorrectDataSize,
    CouldNotSelectDevice,
    NoCard,
    UnusableCard,
    ReadError,
    WriteProtected,
    WriteError,
    PinLevelReadError,
    Setup(SetupError),
    Impl(ImplError),
}

An MCI specific error

This error type contains errors specific to MCI (MultiMedia Card Interface) peripherals. Also it has an Impl kind to pass through implementation specific errors occurring while trying to use an MCI peripheral.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

Data Error, can be a CRC problem, timeout or end bit problem

CommandInhibited

Commands are inhibited from being processed at the moment

CommandError(CommandOrDataError)

There was a problem sending the command

Adma

ADMA error

GroupBusy

Function group trying to be accessed is busy

CiaCouldNotFindTuple

When trying to do get the CIA register could not find the correct tuple in the response

IncorrectDataSize

Supplied data size is either 0 or more than 512 bytes

CouldNotSelectDevice

Could not select and/or setup the card at the slot

NoCard

No card inserted

UnusableCard

Card is unusable

ReadError

Read error

WriteProtected

Card is write protected

WriteError

Write error

PinLevelReadError

Error reading a pin's value

Setup(SetupError)

Setup error

Impl(ImplError)

Implementation specific error (shared across all peripheral specific error kinds)

Trait Implementations

impl Clone for MciError[src]

impl Debug for MciError[src]

Auto Trait Implementations

impl Send for MciError

impl Sync for MciError

impl Unpin for MciError

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.