pub struct HookContext<'b> {
pub capabilities: &'b [CapToken],
pub extra: &'b mut ExtraBytesBuilder,
}Expand description
Hook execution context — opaque to hooks themselves; managed by the
host. Carries the capability set + the extra-bytes builder; sandbox-
backed hosts (WasmtimeHookHost) thread these into a per-invocation
wasmtime Store / Caller<'_, _> internally.
Fields§
§capabilities: &'b [CapToken]Capability tokens granted by the manifest for this hook invocation.
extra: &'b mut ExtraBytesBuilderExtra-bytes builder threaded through Hook → Policy re-validation → L1 build.
Trait Implementations§
Auto Trait Implementations§
impl<'b> Freeze for HookContext<'b>
impl<'b> RefUnwindSafe for HookContext<'b>
impl<'b> Send for HookContext<'b>
impl<'b> Sync for HookContext<'b>
impl<'b> Unpin for HookContext<'b>
impl<'b> UnsafeUnpin for HookContext<'b>
impl<'b> !UnwindSafe for HookContext<'b>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more