pub fn restrict_to_owner(path: &Path) -> Result<(), String>
Restrict a file to its owner. Unix sets mode 0600; Windows replaces the access list with a protected one that allows only the current user (winacl).
winacl