pub enum ShortDBErrors {
Io(Error),
KeyNotFound,
UnexpectedCommandType,
ValueNotSet,
FlushNeededFromMemTable,
}Expand description
Error type for kvs.
Variants§
Io(Error)
IO error.
KeyNotFound
Serialization or deserialization error. Removing non-existent key error.
UnexpectedCommandType
Unexpected command type error. It indicates a corrupted log or a program bug.
ValueNotSet
FlushNeededFromMemTable
Trait Implementations§
Source§impl Debug for ShortDBErrors
impl Debug for ShortDBErrors
Source§impl Display for ShortDBErrors
impl Display for ShortDBErrors
Source§impl Error for ShortDBErrors
impl Error for ShortDBErrors
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ShortDBErrors
impl !RefUnwindSafe for ShortDBErrors
impl Send for ShortDBErrors
impl Sync for ShortDBErrors
impl Unpin for ShortDBErrors
impl !UnwindSafe for ShortDBErrors
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