pub enum Residency {
Resident,
External {
payload_ref: String,
digest: String,
original_size: u64,
},
PagedOut {
payload_ref: String,
digest: String,
},
Collapsed,
}Expand description
Where a handle’s content currently lives. Page-in/page-out are transitions on this.
Self::External and Self::PagedOut are deliberately distinct (§7.10, cluster-b B19): the
first is “generated over the inline threshold and never was resident”, the second is “was
resident, archived under context pressure”.
Variants§
Resident
Full content present in working context.
External
§7.10 · the body was over the inline threshold when it was generated: the host persisted it
before the kernel ever saw it, and only preview was ever resident.
Fields
PagedOut
§7.10 · the body was resident and left under context pressure (page-out archive).
Collapsed
Original kept locally but projected out of the rendered view (Layer 4 read-time projection).
Implementations§
Source§impl Residency
impl Residency
pub fn label(&self) -> &'static str
Sourcepub fn occupies_context(&self) -> bool
pub fn occupies_context(&self) -> bool
Whether the handle’s full content currently counts against the token budget.
Sourcepub fn payload_ref(&self) -> Option<&str>
pub fn payload_ref(&self) -> Option<&str>
The opaque locator a page-in must hand back to the host, when one exists.
None for every residency the kernel can satisfy on its own — Resident and Collapsed
still hold the body locally.
Sourcepub fn digest(&self) -> Option<&str>
pub fn digest(&self) -> Option<&str>
The digest a paged-in body must reproduce. Paired with Self::payload_ref: a residency
that can be loaded is exactly one that can be verified.