pub enum EntryPayload {
Header {
header: SessionHeader,
},
Item {
item: Item,
},
Usage {
usage: TokenUsage,
},
Cancelled {
reason: String,
},
Compaction {
digest: Vec<Item>,
prefix_end: usize,
kept_from: usize,
degraded: bool,
},
BranchMove {
keep_items: usize,
},
Supersede {
digest: Vec<Item>,
},
PendingAsk {
id: String,
summary: String,
protected_why: Option<String>,
},
AskResolved {
id: String,
allowed: bool,
},
Rename {
name: String,
},
Unknown,
}Variants§
Header
Fields
header: SessionHeaderItem
Usage
Fields
usage: TokenUsageCancelled
Compaction
Compaction re-points the projection: history before kept_from is
replaced by digest items; the log itself keeps everything.
Fields
BranchMove
Re-point the projection to its first keep_items items — the
branch_move of the commit-protocol vocabulary, expressed against
the linear projection (M3b). Fork UIs arrive with M4; the entry and
its replay semantics are settled here.
Supersede
Digest of an abandoned branch, appended after a branch_move so the
lesson survives without the tokens (commit-protocol supersede).
PendingAsk
A permission ask committed before it surfaces (durable asks):
if the process dies before a matching ask_resolved, replay
sees a dangling ask and resume re-surfaces it. Log-only (not a
projection item).
AskResolved
Resolution of a pending_ask (§2b): the human answered.
Rename
Sets/overwrites the session’s display name. Log-only — not a
projection item (like PendingAsk); the last one wins on replay.
Unknown
Trait Implementations§
Source§impl Clone for EntryPayload
impl Clone for EntryPayload
Source§fn clone(&self) -> EntryPayload
fn clone(&self) -> EntryPayload
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more