pub enum Lifetime {
Model,
Sequence,
Verify,
Snapshot,
}Expand description
2026-09-30: How long a unit of state lives (LIFECYCLE-DESIGN.md section 3.3).
Variants§
Model
2026-09-30: Allocated once with the model (a KV pool; its blocks are per sequence).
Sequence
2026-09-30: Claimed with a sequence’s slot and released with it.
Verify
2026-09-30: Valid from a verify’s snapshot to its commit or rollback.
Snapshot
2026-10-02: Owned by the prefix cache or the scheduler’s ring, in slots of their own.
Implementations§
Source§impl Lifetime
impl Lifetime
Sourcepub fn of_kind(kind: StateKind) -> Self
pub fn of_kind(kind: StateKind) -> Self
2026-09-30: The one lifetime a state of kind may declare: a recurrent state lives with
its sequence, a KV side with the model’s pool. For a recurrent state Verify belongs to
the verify holdings (Holding::lifetime), never to its declaration. 2026-10-02: The
caches: snapshots live in their owner’s slots, the verify caches across one verify, the
verify tables with the model, a prompt-lookup index and a hidden capture with their
sequence.
Trait Implementations§
Source§impl Ord for Lifetime
impl Ord for Lifetime
Source§impl PartialOrd for Lifetime
impl PartialOrd for Lifetime
impl Copy for Lifetime
impl Eq for Lifetime
impl StructuralPartialEq for Lifetime
Auto Trait Implementations§
impl Freeze for Lifetime
impl RefUnwindSafe for Lifetime
impl Send for Lifetime
impl Sync for Lifetime
impl Unpin for Lifetime
impl UnwindSafe for Lifetime
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.