pub enum BTreePageError {
PageSizeMismatch {
expected: usize,
actual: usize,
},
PageTooSmall {
usable_size: usize,
needed: usize,
},
InvalidPageType {
raw: u8,
},
InvalidFragmentedFreeBytes {
raw: u8,
max: u8,
},
InvalidCellContentAreaStart {
raw: u16,
decoded: u32,
usable_size: usize,
},
CellContentAreaOverlapsCellPointers {
cell_content_start: u32,
cell_pointer_array_end: usize,
},
CellPointerArrayOutOfBounds {
start: usize,
len: usize,
usable_size: usize,
},
InvalidCellPointer {
index: usize,
offset: u16,
usable_size: usize,
},
InvalidFreeblock {
offset: u16,
size: u16,
usable_size: usize,
},
FreeblockLoop {
offset: u16,
},
InvalidRightMostChild {
raw: u32,
},
}Expand description
Errors that can occur while parsing B-tree page layout structures.
Variants§
PageSizeMismatch
Page buffer did not match the expected page size.
PageTooSmall
Page did not have enough bytes to read the header.
InvalidPageType
Unknown B-tree page type byte.
InvalidFragmentedFreeBytes
Fragmented free bytes exceeds the maximum allowed.
InvalidCellContentAreaStart
Cell content area start offset was invalid for this page.
CellContentAreaOverlapsCellPointers
Cell content area begins before the end of the cell pointer array.
CellPointerArrayOutOfBounds
Cell pointer array extends past the usable page area.
InvalidCellPointer
A cell pointer was invalid.
InvalidFreeblock
Freeblock offset/size was invalid.
FreeblockLoop
Freeblock list contained a loop.
InvalidRightMostChild
Interior page right-most child pointer was invalid.
Trait Implementations§
Source§impl Clone for BTreePageError
impl Clone for BTreePageError
Source§fn clone(&self) -> BTreePageError
fn clone(&self) -> BTreePageError
Returns a duplicate of the value. Read more
1.0.0 · 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 BTreePageError
impl Debug for BTreePageError
Source§impl Display for BTreePageError
impl Display for BTreePageError
Source§impl Error for BTreePageError
impl Error for BTreePageError
1.30.0 · 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 PartialEq for BTreePageError
impl PartialEq for BTreePageError
impl Eq for BTreePageError
impl StructuralPartialEq for BTreePageError
Auto Trait Implementations§
impl Freeze for BTreePageError
impl RefUnwindSafe for BTreePageError
impl Send for BTreePageError
impl Sync for BTreePageError
impl Unpin for BTreePageError
impl UnsafeUnpin for BTreePageError
impl UnwindSafe for BTreePageError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).