pub enum CorruptionLocator {
FileOffset {
offset: u64,
},
PageId {
page: u32,
},
TableRow {
table: &'static str,
rowid: i64,
},
Vec0ShadowRow {
partition: &'static str,
rowid: i64,
},
MigrationStep {
from: u32,
to: u32,
},
OpaqueSqliteError {
sqlite_extended_code: i32,
},
}Expand description
Locator pointing at the corrupted region of the database file.
Variant set owned by dev/design/errors.md § CorruptionLocator
ownership. OpaqueSqliteError is the required fallback when SQLite
surfaces corruption without a usable structured locator.
Variants§
Trait Implementations§
Source§impl Clone for CorruptionLocator
impl Clone for CorruptionLocator
Source§fn clone(&self) -> CorruptionLocator
fn clone(&self) -> CorruptionLocator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CorruptionLocator
impl Debug for CorruptionLocator
Source§impl PartialEq for CorruptionLocator
impl PartialEq for CorruptionLocator
Source§fn eq(&self, other: &CorruptionLocator) -> bool
fn eq(&self, other: &CorruptionLocator) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CorruptionLocator
impl Eq for CorruptionLocator
impl StructuralPartialEq for CorruptionLocator
Auto Trait Implementations§
impl Freeze for CorruptionLocator
impl RefUnwindSafe for CorruptionLocator
impl Send for CorruptionLocator
impl Sync for CorruptionLocator
impl Unpin for CorruptionLocator
impl UnsafeUnpin for CorruptionLocator
impl UnwindSafe for CorruptionLocator
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