pub enum ReadError<E> {
KeyNotFound,
KeyTooBig,
BufferTooSmall,
Corrupted,
Flash(E),
}
Expand description
Error returned by ReadTransaction::read
.
Variants§
KeyNotFound
The requested key is not present in the database.
KeyTooBig
The requested key is larger than MAX_KEY_SIZE
BufferTooSmall
The requested key was found, but the value was larger than the provided buffer.
Corrupted
Database is corrupted, or not formatted yet.
Flash(E)
Some operation on the underlying Flash
failed.
Trait Implementations§
source§impl<E: PartialEq> PartialEq for ReadError<E>
impl<E: PartialEq> PartialEq for ReadError<E>
impl<E: Copy> Copy for ReadError<E>
impl<E: Eq> Eq for ReadError<E>
impl<E> StructuralPartialEq for ReadError<E>
Auto Trait Implementations§
impl<E> Freeze for ReadError<E>where
E: Freeze,
impl<E> RefUnwindSafe for ReadError<E>where
E: RefUnwindSafe,
impl<E> Send for ReadError<E>where
E: Send,
impl<E> Sync for ReadError<E>where
E: Sync,
impl<E> Unpin for ReadError<E>where
E: Unpin,
impl<E> UnwindSafe for ReadError<E>where
E: UnwindSafe,
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)