pub enum KernelError {
Io(Error),
Transaction {
kind: TransactionErrorKind,
},
Wal {
kind: WalErrorKind,
},
Page {
kind: PageErrorKind,
},
Catalog {
kind: CatalogErrorKind,
},
Plugin {
message: String,
},
Corruption {
details: String,
},
Recovery {
details: String,
},
}Expand description
Kernel error types - minimal set for ACID operations
Variants§
Io(Error)
I/O error during WAL or page operations
Transaction
Transaction error
Fields
§
kind: TransactionErrorKindWal
WAL error
Fields
§
kind: WalErrorKindPage
Page manager error
Fields
§
kind: PageErrorKindCatalog
Catalog error
Fields
§
kind: CatalogErrorKindPlugin
Plugin error
Corruption
Corruption detected
Recovery
Recovery error
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)>
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 !RefUnwindSafe for KernelError
impl !UnwindSafe for KernelError
impl Freeze for KernelError
impl Send for KernelError
impl Sync for KernelError
impl Unpin for KernelError
impl UnsafeUnpin 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