holoscan::config_io::try_save
holoscan::config_io::try_save
Try to persist one document with guarded same-directory atomic replacement.
Returns: Installed-byte evidence, or a structured failure carrying operation stage and destination state. A kReplaced failure means replacement completed but metadata flush failed.
Parameters
document
Immutable source document.
path
Destination path. Its parent must already exist.
format
Explicit destination syntax.
options
Compare-and-swap, durability, wait, and output-limit policy.