Skip to main content

Module server

Module server 

Source

Structs§

CapturingLogSink
Test-only HostLogSink that captures every emitted message in a Mutex<Vec<String>>. Tests inspect the captured messages to verify log bounds, content, and deduplication without touching stderr.
InvokeError
Typed invoke error.
RuntimeEngine
StderrLogSink
Default HostLogSink writing to stderr via eprintln!.

Enums§

EngineResponse
Internal response type produced by RuntimeEngine. The IPC layer converts this to a v1 RuntimeResponse or v2 RuntimeResponseV2 based on the request’s api_version.
InvokeErrorKind
Stable categorisation of invoke failures.

Constants§

MAX_DETAIL_BYTES
Maximum byte length of the host-only detail string. Guests can fully control this payload via the WIT handler-error variant, so the host truncates it to bound memory and stderr noise. The limit is enforced on a UTF-8 char boundary so the stored string stays valid.

Traits§

HostLogSink
Minimal host-side log sink for invoke diagnostics.
InvokeHandler
Consumers can implement this trait to add business-specific invocation logic.