Skip to main content

TempNameHook

Type Alias TempNameHook 

Source
pub type TempNameHook = fn() -> Result<Vec<u8>, LuaError>;
Expand description

Function-pointer signature for generating a host temporary filename.

Used by os.tmpname and io.tmpfile. The hook should return a path-like byte string that the host’s file_open_hook can understand.