pub struct CommitPlan<'a> { /* private fields */ }Expand description
Borrowed exact transaction artifact accepted by the trusted committer.
Implementations§
Source§impl<'a> CommitPlan<'a>
impl<'a> CommitPlan<'a>
Sourcepub fn new(
binding: &TransactionBinding,
diff: &'a CanonicalDiff,
read_set: &'a BTreeMap<VPath, ReadObservation>,
write_set: &'a BTreeMap<VPath, WritePrecondition>,
) -> Result<Self, CommitPlanError>
pub fn new( binding: &TransactionBinding, diff: &'a CanonicalDiff, read_set: &'a BTreeMap<VPath, ReadObservation>, write_set: &'a BTreeMap<VPath, WritePrecondition>, ) -> Result<Self, CommitPlanError>
Sourcepub fn transaction(&self) -> TransactionId
pub fn transaction(&self) -> TransactionId
Return the transaction ID derived from the exact binding.
Sourcepub const fn base_snapshot(&self) -> SnapshotId
pub const fn base_snapshot(&self) -> SnapshotId
Return the immutable base snapshot identity.
Sourcepub const fn binding(&self) -> TransactionBinding
pub const fn binding(&self) -> TransactionBinding
Return the complete identity binding.
Sourcepub const fn diff(&self) -> &CanonicalDiff
pub const fn diff(&self) -> &CanonicalDiff
Return the canonical final diff.
Sourcepub const fn read_set(&self) -> &BTreeMap<VPath, ReadObservation>
pub const fn read_set(&self) -> &BTreeMap<VPath, ReadObservation>
Return dependencies observed by virtual execution.
Sourcepub const fn write_set(&self) -> &BTreeMap<VPath, WritePrecondition>
pub const fn write_set(&self) -> &BTreeMap<VPath, WritePrecondition>
Return base preconditions for all virtual writes.
Auto Trait Implementations§
impl<'a> Freeze for CommitPlan<'a>
impl<'a> RefUnwindSafe for CommitPlan<'a>
impl<'a> Send for CommitPlan<'a>
impl<'a> Sync for CommitPlan<'a>
impl<'a> Unpin for CommitPlan<'a>
impl<'a> UnsafeUnpin for CommitPlan<'a>
impl<'a> UnwindSafe for CommitPlan<'a>
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