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§
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
)