pub enum Error<E> {
KeyTooLong,
ValueTooLong,
PeerIndexFull,
CorruptedData,
Storage(Error<E>),
}Expand description
Errors surfaced by this module, generic over the flash driver’s own error type.
Variants§
KeyTooLong
Caller-supplied key exceeded MAX_KEY_LEN.
ValueTooLong
Stored value did not fit in the caller-supplied buffer on load.
PeerIndexFull
The peer index already holds MAX_PEERS entries.
CorruptedData
A stored record contained unexpected bytes (e.g. invalid UTF-8 alias).
Storage(Error<E>)
sequential-storage returned an error (corruption, full storage,
underlying flash failure, …).