Skip to main content

save_toml_atomic

Function save_toml_atomic 

Source
pub async fn save_toml_atomic<T>(
    value: &T,
    path: &Path,
    what: &str,
) -> Result<(), Error>
where T: Serialize,
Expand description

Serializes value as pretty TOML and atomically writes it to path. what is a human-readable label used in error messages.