pub trait Hook {
// Required method
fn invoke_hook(&mut self, env: HookEnv<'_, '_>, buf: &[u8]) -> Vec<Vec<u8>>;
}
Expand description
A runtime hook. May be called during execution by writing to a specified file descriptor, accepting and returning arbitrary data.