Skip to main content

write_json_durable

Function write_json_durable 

Source
pub fn write_json_durable<T>(
    path: &Path,
    value: &T,
) -> Result<(), PersistenceError>
where T: Serialize,
Expand description

Durably replace a machine record using a sibling temporary and rename.

ยงErrors

Returns encoding or IO failures; a lost post-rename response requires reconciliation.