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§

ArchivedPageBytes
An archived PageBytes
PageBytes
One page’s bytes plus its precomputed content hash.
PageBytesResolver
The resolver for an archived PageBytes

Enums§

ArchivedPageSlot
An archived PageSlot
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).
PageSlotResolver
The resolver for an archived PageSlot

Type Aliases§

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