Skip to main content

Module handler

Module handler 

Source
Expand description

Native effect handlers, dispatched at runtime through the VM’s EffectHandler trait. The handler also re-checks the runtime policy per spec §7.4 (the static check is necessary but not sufficient: a fn declared [fs_read("/data")] that’s allowed at startup still has to pass the path check at the point of dispatch).

Structs§

CapturedSink
DefaultHandler
StdoutSink
TlsConfig
Blocks the calling thread, accepts incoming HTTP requests on 127.0.0.1:port, and dispatches each through the named Lex stage. Each request gets a fresh Vm; the program and policy are shared.

Traits§

IoSink
Output sink used by io.print. Tests inject a buffer; production prints to stdout.

Type Aliases§

StreamRegistry
agent.cloud_stream registry: per-handle producer iterators keyed by opaque handle id (#305 slice 3).