Skip to main content

SpilledCell

Struct SpilledCell 

Source
pub struct SpilledCell {
    pub offset: usize,
    pub byte_len: usize,
    pub payload_len: usize,
    pub rowid: i64,
    pub serials: Vec<i64>,
    pub local_len: usize,
    pub local_payload_off: usize,
    pub first_overflow: u32,
}
Expand description

A freed table-leaf cell whose declared payload spills onto an overflow-page chain (task #73). Recognized by try_carve_spilled_cell_at from the cell’s intact local prefix; the chain itself is resolved separately (Database::read_freed_overflow_chain) because that needs whole-database access. A SpilledCell is deliberately NOT a CarvedCell: until its chain is walked and validated it cannot masquerade as a recovered row (secure by design — the type system keeps an unresolved spill out of the full-row output).

Fields§

§offset: usize

Byte offset of the cell within the scanned slice.

§byte_len: usize

On-page footprint of the cell prefix: n1 + n2 + local_len + 4.

§payload_len: usize

Declared total payload length P (header + full body).

§rowid: i64

Decoded rowid varint (intact-prefix anchors); 0 when the prefix was clobbered and the rowid is unrecoverable (template path).

§serials: Vec<i64>

Full serial-type array, decoded from the local record header.

§local_len: usize

Local payload bytes kept on the leaf page (local_payload_len(P, usable)).

§local_payload_off: usize

Offset, within the scanned slice, at which the local payload begins.

§first_overflow: u32

First overflow-page number (big-endian u32 at local_payload_off + local_len).

Trait Implementations§

Source§

impl Clone for SpilledCell

Source§

fn clone(&self) -> SpilledCell

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SpilledCell

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for SpilledCell

Source§

fn eq(&self, other: &SpilledCell) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for SpilledCell

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.