Skip to content
API REFERENCEUsage guides →

cellpack::loader::SlotHeader ​

struct

Module contract · All interfaces

At a glance ​

#[repr(C, align(64))]pub struct SlotHeader {
    pub seq: AtomicU64,
    pub state: AtomicU32,
    pub rows: AtomicU32,
    pub remaining: AtomicU32,
    pub generation: AtomicU64,
}

One slot’s header, on its own cache line: which batch it holds, its state and how many of its outputs are still unwritten.

Fields and variants ​

seq ​

The batch the slot was opened for, u64::MAX before any run.

state ​

state: AtomicU32

One of the slot states: filling, ready, done or leased.

rows ​

rows: AtomicU32

Positions in the slot.

remaining ​

remaining: AtomicU32

Outputs (positions × schemas) not yet written.

generation ​

generation: AtomicU64

The run generation the slot was opened under.

Contract reference ​

See the module reference for semantic input/output rules, units, allocation, mutation, failure behavior, and lifetime requirements. Declarations and documented members are synchronized from the crate source.

Definition