Skip to main content

EnvHook

Type Alias EnvHook 

Source
pub type EnvHook = fn(name: &[u8]) -> Option<Vec<u8>>;
Expand description

Function-pointer signature for reading a host environment variable.

Returning None maps naturally to Lua’s os.getenv result for a missing variable and is also the sandbox/bare-WASM default when no environment is exposed.