Skip to main content

Module conditional_replace

Module conditional_replace 

Source
Expand description

Cross-process compare-and-replace for complete file payloads.

Structs§

ConditionalReplaceOptions
Preconditions and durability for one replacement.
ConditionalReplaceReceipt
Receipt for one compare-and-replace operation.
ScopedConditionalReplaceLockRoot
Restores the prior execution-local replacement lock root on drop.

Enums§

ConditionalReplaceStatus
Closed successful outcome for one replacement attempt.

Functions§

conditional_replace
Replace a complete file payload under a canonical-path cross-process lock.
conditional_replace_with_hook
Variant used by hosts that must snapshot the pre-image immediately before mutation while the replacement lock is still held.
scope_conditional_replace_lock_root
Route compare-and-replace locks through a caller-owned root on this thread. Worker threads must install their own guard; the override is intended for isolated embedders and tests, not as ambient workflow state.