pub trait HookHost {
// Required method
fn invoke(&self, ctx: &mut HookContext<'_>) -> Result<(), HookError>;
}Expand description
Pre-submit hook host — the L2 service that runs registered hooks
against an in-flight submission’s extra_bytes buffer.
§Backends
The runtime selects between two backends:
NoopHookHost(always available) — pass-through that returnsOk(())without mutation.WasmtimeHookHost(featuretier-2-hook-host-v2) — wasmtime preview-2 sandbox with fuel-metered execution + capability- whitelisted host-fns.