pub fn write_atomic_json<T: Serialize>(
path: &Path,
value: &T,
) -> Result<(), Error>Expand description
Writes a JSON snapshot to a sibling temporary file and atomically renames it over the target.
ยงErrors
Returns an I/O or serialization error.