pub enum ShortDBErrors {
Io(Error),
WalCorruption,
SstCorruption(String),
Utf8(FromUtf8Error),
}Expand description
Error type for kvs.
Variants§
Io(Error)
IO error.
WalCorruption
WAL file is corrupted (partial write detected).
SstCorruption(String)
SST file is corrupted.
Utf8(FromUtf8Error)
UTF-8 encoding error.
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()
Source§impl From<Error> for ShortDBErrors
impl From<Error> for ShortDBErrors
Source§impl From<FromUtf8Error> for ShortDBErrors
impl From<FromUtf8Error> for ShortDBErrors
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
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