Skip to main content

Module wire

Module wire 

Source
Expand description

The values that cross the boundary, and their encoders.

These deliberately mirror holger_traits::{ArtifactId, ArtifactEntry} rather than reusing them: holger-traits depends on znippy-common, which carries arrow, io_uring and the gatling engine, so it cannot be compiled for wasm32-unknown-unknown. The mapping between the two lives in exactly one place — holger_plugin_host::convert — so a guest and a linked backend are projected into the router through the same code.

Structs§

WireArtifactEntry
One listed artifact. Mirror of holger_traits::ArtifactEntry.
WireArtifactId
A package coordinate. Mirror of holger_traits::ArtifactId.
WireHttpRequest
The request half of the HTTP door.
WireHttpResponse
(status, headers, body) — the established HTTP-door contract across holger’s backends, carried as one value.
WireListRequest
Arguments to plugin_list.
WireManifest
What a module says about itself at load time, read once from plugin_manifest. This is why registration can read a directory rather than a config file: the module names itself.
WirePutRequest
Arguments to plugin_put.

Constants§

ABI_VERSION
Bumped when the layout of anything in this module changes. The host refuses a module that reports a different number: a silently mismatched ABI decodes garbage into real fields, which is worse than not loading at all.

Functions§

decode_coordinate_response
decode_fetch_response
decode_http_response
decode_list_response
decode_store_get
decode_store_listing
decode_unit_response
encode_coordinate_response
encode_fetch_response
encode_http_response
encode_list_response
encode_store_get
encode_store_listing
A (key, size) listing row from crate::BlobStore::list.
encode_unit_response