[][src]Function glommio::io::rename

pub async fn rename<P: AsRef<Path>, Q: AsRef<Path>>(
    old_path: P,
    new_path: Q
) -> Result<()>

rename an existing file.

Warning: synchronous operation, will block the reactor