pub struct PreparedRuntimeSessionCommit { /* private fields */ }Expand description
Opaque, valid-by-construction request for one runtime-owned session boundary.
The constructors prevent receipt, lifecycle, and session-key values from
being combined into a boundary shape that no
RuntimeStore verb can commit. The sealed session remains typed and lazy
until the selected persistence profile consumes it.
Implementations§
Source§impl PreparedRuntimeSessionCommit
impl PreparedRuntimeSessionCommit
Sourcepub fn snapshot_only(session: BoundSessionCommit) -> Self
pub fn snapshot_only(session: BoundSessionCommit) -> Self
Prepare a session-control snapshot without a run receipt.
Sourcepub fn success(
session: Option<BoundSessionCommit>,
receipt: RunBoundaryReceipt,
input_updates: Vec<InputStatePersistenceRecord>,
session_store_key: Option<SessionId>,
) -> Self
pub fn success( session: Option<BoundSessionCommit>, receipt: RunBoundaryReceipt, input_updates: Vec<InputStatePersistenceRecord>, session_store_key: Option<SessionId>, ) -> Self
Prepare a successful run boundary.
Sourcepub fn promote_whole_blob_success(
promotion: PreparedWholeBlobProvisionalPromotion,
receipt: RunBoundaryReceipt,
input_updates: Vec<InputStatePersistenceRecord>,
session_store_key: SessionId,
) -> Result<Self, RuntimeStoreError>
pub fn promote_whole_blob_success( promotion: PreparedWholeBlobProvisionalPromotion, receipt: RunBoundaryReceipt, input_updates: Vec<InputStatePersistenceRecord>, session_store_key: SessionId, ) -> Result<Self, RuntimeStoreError>
Prepare a successful final boundary that promotes an already-written WholeBlob candidate without carrying or materializing its Session body.
Sourcepub fn promote_head_canonical_success(
promotion: PreparedHeadCanonicalProvisionalPromotion,
receipt: RunBoundaryReceipt,
input_updates: Vec<InputStatePersistenceRecord>,
session_store_key: SessionId,
) -> Result<Self, RuntimeStoreError>
pub fn promote_head_canonical_success( promotion: PreparedHeadCanonicalProvisionalPromotion, receipt: RunBoundaryReceipt, input_updates: Vec<InputStatePersistenceRecord>, session_store_key: SessionId, ) -> Result<Self, RuntimeStoreError>
Prepare a successful final boundary that promotes an already-applied HeadCanonical physical checkpoint without reapplying its rows.
Sourcepub fn machine_terminal(
session: BoundSessionCommit,
receipt: RunBoundaryReceipt,
machine_lifecycle: MachineLifecycleCommit,
input_updates: Vec<InputStatePersistenceRecord>,
session_store_key: SessionId,
) -> Self
pub fn machine_terminal( session: BoundSessionCommit, receipt: RunBoundaryReceipt, machine_lifecycle: MachineLifecycleCommit, input_updates: Vec<InputStatePersistenceRecord>, session_store_key: SessionId, ) -> Self
Prepare a failed-but-applied run boundary.
Sourcepub fn promote_whole_blob_machine_terminal(
promotion: PreparedWholeBlobProvisionalPromotion,
receipt: RunBoundaryReceipt,
machine_lifecycle: MachineLifecycleCommit,
input_updates: Vec<InputStatePersistenceRecord>,
session_store_key: SessionId,
) -> Result<Self, RuntimeStoreError>
pub fn promote_whole_blob_machine_terminal( promotion: PreparedWholeBlobProvisionalPromotion, receipt: RunBoundaryReceipt, machine_lifecycle: MachineLifecycleCommit, input_updates: Vec<InputStatePersistenceRecord>, session_store_key: SessionId, ) -> Result<Self, RuntimeStoreError>
Prepare a failed-but-applied final boundary that promotes the exact store-owned WholeBlob candidate.
Sourcepub fn promote_head_canonical_machine_terminal(
promotion: PreparedHeadCanonicalProvisionalPromotion,
receipt: RunBoundaryReceipt,
machine_lifecycle: MachineLifecycleCommit,
input_updates: Vec<InputStatePersistenceRecord>,
session_store_key: SessionId,
) -> Result<Self, RuntimeStoreError>
pub fn promote_head_canonical_machine_terminal( promotion: PreparedHeadCanonicalProvisionalPromotion, receipt: RunBoundaryReceipt, machine_lifecycle: MachineLifecycleCommit, input_updates: Vec<InputStatePersistenceRecord>, session_store_key: SessionId, ) -> Result<Self, RuntimeStoreError>
Prepare a failed-but-applied boundary that promotes the exact applied HeadCanonical provisional checkpoint.
Sourcepub fn service_turn_terminal(
session: BoundSessionCommit,
receipt: RunBoundaryReceipt,
machine_lifecycle: MachineLifecycleCommit,
session_store_key: SessionId,
) -> Self
pub fn service_turn_terminal( session: BoundSessionCommit, receipt: RunBoundaryReceipt, machine_lifecycle: MachineLifecycleCommit, session_store_key: SessionId, ) -> Self
Prepare a direct service-turn terminal boundary.
Sourcepub fn promote_whole_blob_service_turn_terminal(
promotion: PreparedWholeBlobProvisionalPromotion,
receipt: RunBoundaryReceipt,
machine_lifecycle: MachineLifecycleCommit,
session_store_key: SessionId,
) -> Result<Self, RuntimeStoreError>
pub fn promote_whole_blob_service_turn_terminal( promotion: PreparedWholeBlobProvisionalPromotion, receipt: RunBoundaryReceipt, machine_lifecycle: MachineLifecycleCommit, session_store_key: SessionId, ) -> Result<Self, RuntimeStoreError>
Prepare a direct service-turn terminal boundary that promotes the exact store-owned WholeBlob candidate.
Sourcepub fn promote_head_canonical_service_turn_terminal(
promotion: PreparedHeadCanonicalProvisionalPromotion,
receipt: RunBoundaryReceipt,
machine_lifecycle: MachineLifecycleCommit,
session_store_key: SessionId,
) -> Result<Self, RuntimeStoreError>
pub fn promote_head_canonical_service_turn_terminal( promotion: PreparedHeadCanonicalProvisionalPromotion, receipt: RunBoundaryReceipt, machine_lifecycle: MachineLifecycleCommit, session_store_key: SessionId, ) -> Result<Self, RuntimeStoreError>
Prepare a service-turn terminal boundary that promotes the exact applied HeadCanonical provisional checkpoint.
Sourcepub fn kind(&self) -> PreparedRuntimeSessionCommitKind
pub fn kind(&self) -> PreparedRuntimeSessionCommitKind
Boundary shape selected by the constructor.
Sourcepub fn session(&self) -> Option<&BoundSessionCommit>
pub fn session(&self) -> Option<&BoundSessionCommit>
Prepared session document, when this boundary carries one.
Sourcepub fn receipt(&self) -> Option<&RunBoundaryReceipt>
pub fn receipt(&self) -> Option<&RunBoundaryReceipt>
Boundary receipt, absent only for snapshot-only commits.
Sourcepub fn input_updates(&self) -> Option<&[InputStatePersistenceRecord]>
pub fn input_updates(&self) -> Option<&[InputStatePersistenceRecord]>
Input-state mutations committed with a run boundary.
Sourcepub fn session_store_key(&self) -> Option<&SessionId>
pub fn session_store_key(&self) -> Option<&SessionId>
Explicit SessionStore identity carried by a run boundary.
Sourcepub fn machine_lifecycle(&self) -> Option<&MachineLifecycleCommit>
pub fn machine_lifecycle(&self) -> Option<&MachineLifecycleCommit>
Machine lifecycle authority, present only for a machine-terminal commit.
Trait Implementations§
Source§impl Clone for PreparedRuntimeSessionCommit
impl Clone for PreparedRuntimeSessionCommit
Source§fn clone(&self) -> PreparedRuntimeSessionCommit
fn clone(&self) -> PreparedRuntimeSessionCommit
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more