Skip to main content

append

Function append 

Source
pub fn append(root: &Path, path: &Path, line: &str) -> Option<()>
Expand description

Append one serialized event or batch to path.

Returns None — never an error — when the tombstone is present, the privacy lock is held, the line would not fit in one atomic write, or any filesystem step fails. The lock acquisition is non-blocking, including on the panic and signal paths.