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
Auto Trait Implementations
impl RefUnwindSafe for SmartEepromRetrievalFailure
impl Send for SmartEepromRetrievalFailure
impl Sync for SmartEepromRetrievalFailure
impl Unpin for SmartEepromRetrievalFailure
impl UnwindSafe for SmartEepromRetrievalFailure
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more