pub fn create_tmp(dir: &Path, dest: &Path) -> Result<(PathBuf, File)>Expand description
A fresh temp file beside dest: create_new (never follows or truncates an
existing path) under an unpredictable name, mode 0600 on Unix.
ยงErrors
An I/O error creating the file, or AlreadyExists after repeated name clashes.