Skip to main content

Module page

Module page 

Source
Expand description

PageSlot and PageRef — DataCap page storage.

Each page is owned by the DataCap that holds it. Sharing across DataCap CoW clones is done via PageRef, a refcounted handle over PageBytes backed by the global allocator. The cache subsystem doesn’t index pages by hash — pages aren’t first-class caps. They’re internal to the DataCap layer.

Structs§

PageBytes
One page’s bytes plus its precomputed content hash.

Enums§

PageSlot
Sparse representation of a paged DataCap’s pages. Empty is the canonical zero page; Loaded holds a refcounted byte slab; Missing records the page’s content hash so a host callback can later resolve it (V1: never observed — we always pre-publish).

Type Aliases§

PageRef
Refcounted handle to a PageBytes allocated by the global allocator. Plain std::sync::Arc alias for cap-layer readability.