Skip to main content

append_to

Function append_to 

Source
pub fn append_to<T: Serialize>(path: &Path, line: &T) -> Result<(), String>
Expand description

Adds line at the end of the log at path: one line written whole, under the file’s lock (filelock), so two writers never mix their lines. The file is made yours alone, in a folder of yours alone (Unix).