Expand description
Cross-process compare-and-replace for complete file payloads.
Structs§
- Conditional
Replace Options - Preconditions and durability for one replacement.
- Conditional
Replace Receipt - Receipt for one compare-and-replace operation.
- Scoped
Conditional Replace Lock Root - Restores the prior execution-local replacement lock root on drop.
Enums§
- Conditional
Replace Status - 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.