pub fn tmp_path(path: &Path) -> PathBuf
Appends .tmp to any path.
.tmp
The write-then-rename partner for atomic file replacement: write to tmp_path(p), fsync, then rename onto p so a reader never observes a half-written file.
tmp_path(p)
p