pub struct CommitCapsule {
pub object_id: ObjectId,
pub snapshot_basis: CommitSeq,
pub intent_log: Vec<IntentOp>,
pub page_deltas: Vec<(PageNumber, Vec<u8>)>,
pub read_set_digest: [u8; 32],
pub write_set_digest: [u8; 32],
pub read_witness_refs: Vec<ObjectId>,
pub write_witness_refs: Vec<ObjectId>,
pub dependency_edge_refs: Vec<ObjectId>,
pub merge_witness_refs: Vec<ObjectId>,
}Expand description
A commit capsule is the durable ECS object that a native-mode commit refers to (§7.11.1).
Contains the transaction’s intent log, page deltas, snapshot basis,
and SSI witness-plane evidence references. Built deterministically by the
writer before submission to the WriteCoordinator.
Fields§
§object_id: ObjectIdContent-addressed identity of this capsule ECS object.
snapshot_basis: CommitSeqThe commit-seq snapshot this transaction read from.
intent_log: Vec<IntentOp>Semantic intent log (ordered operations).
page_deltas: Vec<(PageNumber, Vec<u8>)>Page-level deltas: (page_number, delta_bytes).
read_set_digest: [u8; 32]BLAKE3 digest of the transaction’s read set.
write_set_digest: [u8; 32]BLAKE3 digest of the transaction’s write set.
read_witness_refs: Vec<ObjectId>ECS ObjectId refs to ReadWitness objects.
write_witness_refs: Vec<ObjectId>ECS ObjectId refs to WriteWitness objects.
dependency_edge_refs: Vec<ObjectId>ECS ObjectId refs to DependencyEdge objects.
merge_witness_refs: Vec<ObjectId>ECS ObjectId refs to MergeWitness objects.
Trait Implementations§
Source§impl Clone for CommitCapsule
impl Clone for CommitCapsule
Source§fn clone(&self) -> CommitCapsule
fn clone(&self) -> CommitCapsule
Returns a duplicate of the value. Read more
1.0.0 · 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 CommitCapsule
impl Debug for CommitCapsule
Source§impl<'de> Deserialize<'de> for CommitCapsule
impl<'de> Deserialize<'de> for CommitCapsule
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 CommitCapsule
impl PartialEq for CommitCapsule
Source§impl Serialize for CommitCapsule
impl Serialize for CommitCapsule
impl StructuralPartialEq for CommitCapsule
Auto Trait Implementations§
impl Freeze for CommitCapsule
impl RefUnwindSafe for CommitCapsule
impl Send for CommitCapsule
impl Sync for CommitCapsule
impl Unpin for CommitCapsule
impl UnsafeUnpin for CommitCapsule
impl UnwindSafe for CommitCapsule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).