Skip to main content

Module atomic

Module atomic 

Source
Expand description

Atomic file write pipeline. Atomic file write pipeline: tempfile, fsync, rename, fsync directory.

Structs§

AtomicWriteOptions
Configuration for an atomic write operation.
WriteResult
Result metadata returned after a successful atomic write.

Functions§

atomic_write
Write content atomically via tempfile, fsync, and rename.
rfc3339_now
Return the current UTC time as an RFC 3339 string (e.g. 2024-01-15T14:30:22Z).