Enum kip_db::error::KernelError
source · #[non_exhaustive]pub enum KernelError {
Show 20 variants
Io(Error),
RecvError(RecvError),
SendCompactTaskError(SendError<CompactTask>),
SendCleanTagError(SendError<CleanTag>),
SerdeBinCode(Box<ErrorKind>),
KeyNotFound,
DataEmpty,
LevelOver,
NotMatchCmd,
CrcMisMatch,
CacheSizeOverFlow,
CacheShardingNotAlign,
FileNotFound,
WalLoad,
UnexpectedCommandType,
ProcessExists,
ChannelClose,
NotSupport(&'static str),
ShardingNotAlign,
RepeatedWrite,
}
Expand description
Error type for kvs
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(Error)
IO error
RecvError(RecvError)
SendCompactTaskError(SendError<CompactTask>)
SendCleanTagError(SendError<CleanTag>)
SerdeBinCode(Box<ErrorKind>)
Serialization or deserialization error
KeyNotFound
Remove no-existent key error
DataEmpty
LevelOver
NotMatchCmd
CrcMisMatch
CacheSizeOverFlow
CacheShardingNotAlign
FileNotFound
WalLoad
正常情况wal在内存中存在索引则表示硬盘中存在有对应的数据 而错误则是内存存在索引却在硬盘中不存在这个数据
UnexpectedCommandType
Unexpected command type error. It indicated a corrupted log or a program bug.
ProcessExists
ChannelClose
NotSupport(&'static str)
ShardingNotAlign
RepeatedWrite
Trait Implementations§
source§impl Debug for KernelError
impl Debug for KernelError
source§impl Display for KernelError
impl Display for KernelError
source§impl Error for KernelError
impl Error for KernelError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 KernelError
impl From<Error> for KernelError
source§impl From<KernelError> for ConnectionError
impl From<KernelError> for ConnectionError
source§fn from(source: KernelError) -> Self
fn from(source: KernelError) -> Self
Converts to this type from the input type.
source§impl From<RecvError> for KernelError
impl From<RecvError> for KernelError
source§impl From<SendError<CleanTag>> for KernelError
impl From<SendError<CleanTag>> for KernelError
source§impl From<SendError<CompactTask>> for KernelError
impl From<SendError<CompactTask>> for KernelError
source§fn from(source: SendError<CompactTask>) -> Self
fn from(source: SendError<CompactTask>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for KernelError
impl !RefUnwindSafe for KernelError
impl Send for KernelError
impl Sync for KernelError
impl Unpin for KernelError
impl !UnwindSafe for KernelError
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