pub enum KVError {
CouldntDecode,
CouldntEncode,
CouldntWrite,
FailedToRead,
CouldntFlush,
CouldntOpen,
CouldntLoad,
CouldntWriteLock,
CouldntReadLock,
CouldntUnlock,
CouldntSeekToStart,
}Expand description
Errors that KV might have
Variants§
CouldntDecode
Could not deserialize the cab from disk
CouldntEncode
Couldn’t serialize the hashmap for writing to disk
CouldntWrite
Could not write to the cab on disk
FailedToRead
Failed to read the cab from disk
CouldntFlush
Could not flush the data to disk
CouldntOpen
Could not open the file from disk
CouldntLoad
Could not load the file from disk
CouldntWriteLock
Failed to write lock the cab
CouldntReadLock
Failed to read lock the cab
CouldntUnlock
Failed to unlock the cab
CouldntSeekToStart
Failed to set SeekFrom::Start
Trait Implementations§
impl StructuralPartialEq for KVError
Auto Trait Implementations§
impl Freeze for KVError
impl RefUnwindSafe for KVError
impl Send for KVError
impl Sync for KVError
impl Unpin for KVError
impl UnwindSafe for KVError
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