pub enum ErrorCode {
}
Expand description
Standard error codes.
Variants§
UnsupportedVersion
We found a header in the flash that we don’t support
CorruptData
Some of the data in flash appears to be corrupt
InvalidCheckSum
The check sum doesn’t match Note that the value buffer is still filled
KeyNotFound
The requested key couldn’t be found
KeyAlreadyExists
Indicates that we can’t add this key as one with the same key hash already exists.
RegionFull
Indicates that the region where this object should be added is full. In future this error should be handled internally by allocating the object in a different region.
FlashFull
Unable to add a key, the flash is full. Note that the flash might not be full after running a garbage collection.
ReadFail
Unable to read the flash region
WriteFail
Unable to write the buffer to the flash address
EraseFail
Unable to erase the flash region
ObjectTooLarge
The object is larger then 0x7FFF
BufferTooSmall(usize)
The supplied buffer is too small. The error code includes the total length of the value.
ReadNotReady(usize)
Indicates that the flash read operation is not yet ready.
The process can be retried by calling continue_operation()
.
WriteNotReady(usize)
Indicates that the flash write operation is not yet ready.
EraseNotReady(usize)
Indicates that the flash erase operation is not yet ready.