pub enum Error {
StorageError(Error),
CorruptDataError(u64),
InvalidEntryError {
reason: String,
},
InvalidKeyError {
reason: String,
},
InvalidValueError {
reason: String,
},
MaxSizeExceeded {
size: usize,
max_bytes: u8,
bytes_required: u8,
},
InvalidIntLength {
bytes_expected: u8,
bytes_found: u8,
},
StorageLockError,
TransactionConflict,
}Expand description
The error type for store operations.
Variants§
StorageError(Error)
Caused by storage read or write operations.
CorruptDataError(u64)
The CRC checksum of an entry did not match its content.
InvalidEntryError
The kv entry had an invalid format.
InvalidKeyError
The store key was invalid.
InvalidValueError
The store value was invalid.
MaxSizeExceeded
The store key or value exceeded the maximum size supported by the store.
Fields
InvalidIntLength
The bytes read exceeded the expected number of bytes for an int.
Fields
StorageLockError
The storage could not be locked.
TransactionConflict
The transaction has read a value that has since been overwritten.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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
Mutably borrows from an owned value. Read more