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,
},
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.
Unknown
Trait Implementations§
Source§impl Clone for EntryPayload
impl Clone for EntryPayload
Source§fn clone(&self) -> EntryPayload
fn clone(&self) -> EntryPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EntryPayload
impl Debug for EntryPayload
Source§impl<'de> Deserialize<'de> for EntryPayload
impl<'de> Deserialize<'de> for EntryPayload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EntryPayload
impl PartialEq for EntryPayload
Source§impl Serialize for EntryPayload
impl Serialize for EntryPayload
impl StructuralPartialEq for EntryPayload
Auto Trait Implementations§
impl Freeze for EntryPayload
impl RefUnwindSafe for EntryPayload
impl Send for EntryPayload
impl Sync for EntryPayload
impl Unpin for EntryPayload
impl UnsafeUnpin for EntryPayload
impl UnwindSafe for EntryPayload
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
Mutably borrows from an owned value. Read more