pub type FileRenameHook = fn(from: &[u8], to: &[u8]) -> Result<()>;Expand description
Function-pointer signature for renaming a file, installed on
GlobalState::file_rename_hook by the embedder.
std::fs is banned outside lua-cli, so lua-stdlib’s os.rename
reaches the filesystem via this hook. Returns Ok(()) on success.
The error type is std::io::Error, for the same reason as
FileRemoveHook (#301).