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

SmartEEPROM 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
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.

Should always be Self
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.