Function tempfile

Source
pub fn tempfile(
    target_path: PathBuf,
    migrate_access: bool,
) -> Result<(Tempfile, BufWriter<File>), TempfileError>
Expand description

Usage of Tempfile made easier: opens a file handle to the temporary file and hands it back, too