nix::fcntl
pub fn rename<P1: ?Sized + NixPath, P2: ?Sized + NixPath>( oldpath: &P1, newpath: &P2) -> Result<()>
Change the name or location of a file (posix specification).