pub enum RowLocatorError {
TooShort {
got: usize,
need: usize,
},
BadTag {
got: u8,
},
TruncatedCold {
got: usize,
need: usize,
},
LegacyIndexOverflow(String),
}Expand description
Errors surfaced by RowLocator::read_le when the byte slice
doesn’t match either tagged variant layout.
Variants§
TooShort
Slice was shorter than the minimum tagged-variant length.
BadTag
Tag byte wasn’t TAG_HOT (0x00) or TAG_COLD (0x01).
TruncatedCold
Caller used read_le with a Cold payload but the slice
stopped before the 8 bytes of (segment_id, page_offset).
LegacyIndexOverflow(String)
Catalog format v8 fallback: caller asked read_le_legacy_u64
to wrap a row index that doesn’t fit in usize on this
target (a 32-bit target reading a v8 catalog with > 4 G
rows per table). Surface explicitly rather than wrapping.
Trait Implementations§
Source§impl Debug for RowLocatorError
impl Debug for RowLocatorError
Source§impl Display for RowLocatorError
impl Display for RowLocatorError
impl Eq for RowLocatorError
Source§impl PartialEq for RowLocatorError
impl PartialEq for RowLocatorError
impl StructuralPartialEq for RowLocatorError
Auto Trait Implementations§
impl Freeze for RowLocatorError
impl RefUnwindSafe for RowLocatorError
impl Send for RowLocatorError
impl Sync for RowLocatorError
impl Unpin for RowLocatorError
impl UnsafeUnpin for RowLocatorError
impl UnwindSafe for RowLocatorError
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