pub enum SmartEepromRetrievalFailure {
    Disabled,
    DisabledAutomaticPageReallocationNotSupported,
    BufferedWritesNotSupported,
    InvalidBlockCount {
        sblk: u32,
    },
}
Expand description

Enum representing possible failure modes of SmartEEPROM while its state is being retrieved from HW registers.

Variants

Disabled

SmartEERPOM is disabled and user page is misconfigured. More details in module-level documentation.

DisabledAutomaticPageReallocationNotSupported

Support for disabled automatic page reallocation is not implemented.

BufferedWritesNotSupported

Support for buffered writes to NVM is not implemented.

InvalidBlockCount

Fields

sblk: u32

Currently set, unsupported SBLK value.

SBLK must be in range 1..=10. SBLK is represented by 4 bits in a user page which means that it can be between 0 and 15. Documentation does not cover cases for 11..=15, therefore API considers them unsupported.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Casts the value.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Casts the value.

Casts the value.

Casts the value.

Performs the conversion.

Performs the conversion.

Casts the value.

OverflowingCasts the value.

Should always be Self

Casts the value.

Casts the value.

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.

Casts the value.

UnwrappedCasts the value.

Casts the value.

WrappingCasts the value.