pub enum Error {
    AbortedByFetch,
    NotErased,
    ReadProtection,
    ConfigMismatch,
    InvalidSize,
    InvalidAlignment,
    WriteProtection,
}

Variants

AbortedByFetch

Write/erase was aborted by fetch operation

See FWWERR bit in SR register.

NotErased

Failed to write memory that was not erased

See NOTZEROERR bit in SR register.

ReadProtection

Attempted to read protected memory

See RDERR bit in SR register.

ConfigMismatch

Configuration mismatch

See OPTVERR bit in SR register.

InvalidSize

Size of data to program is not correct

See SIZERR bit in SR register.

InvalidAlignment

Incorrect alignment when programming half-page

See PGAERR bit in SR register.

WriteProtection

Attempted to write to protected memory

See WRPERR in SR register.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.