pub struct CommitBatch {
pub facts: Vec<KeyedMemory>,
pub essence_ops: Vec<EssenceOp>,
pub turns: Vec<ThreadTurn>,
pub thread_id: Option<String>,
pub turn_policy: TurnPolicy,
}Expand description
Atomic write batch for crate::Mnemo::commit_deltas
(Phase 12.7c). The planner’s “one call that composes facts +
essence + turns” shape: everything validates up front, then every
write runs under a single flush().
Fields§
§facts: Vec<KeyedMemory>Keyed-or-not facts to remember (12.1).
essence_ops: Vec<EssenceOp>Essence ops to apply (12.7b).
turns: Vec<ThreadTurn>Thread archive turns to ingest (12.7a).
thread_id: Option<String>Destination thread id for turns. Required when turns is
non-empty.
turn_policy: TurnPolicyWhat to do with turns — defaults to Archive.
Trait Implementations§
Source§impl Clone for CommitBatch
impl Clone for CommitBatch
Source§impl Debug for CommitBatch
impl Debug for CommitBatch
Auto Trait Implementations§
impl Forget for CommitBatch
impl Freeze for CommitBatch
impl RefUnwindSafe for CommitBatch
impl Send for CommitBatch
impl Sync for CommitBatch
impl Unpin for CommitBatch
impl UnsafeUnpin for CommitBatch
impl UnwindSafe for CommitBatch
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