Enum tickv::error_codes::ErrorCode
source · 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.
Trait Implementations§
source§impl PartialEq for ErrorCode
impl PartialEq for ErrorCode
impl Copy for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)