Skip to main content

Crate lenso_runtime_codec

Crate lenso_runtime_codec 

Source
Expand description

Shared artifact and generated Capability codec seams for Execution Adapters.

Structs§

ArtifactCatalog
Immutable Instance-to-Artifact mapping injected by the Generation Supervisor.
ArtifactHandle
One immutable content snapshot captured during Artifact admission.
InstanceResourceCatalog
Immutable Instance-to-resource-snapshot mapping injected by the Generation Supervisor.
InstanceResources
Immutable, content-addressed files owned by one Plugin Instance Generation.
JsonCapabilityDescriptor
One exact request Capability exposed by a guest Plugin.
JsonHostBindingDescriptor
One exact Plan binding exposed to a guest Plugin after lifecycle activation.
JsonHostImports
Activated, Plan-bound Capability imports for one byte-oriented guest generation.
JsonPluginDescriptor
Exact guest declaration returned before an Adapter opens readiness.
JsonRequiredCapabilityDescriptor
One exact Capability requirement declared by a guest Plugin.

Enums§

JsonInvocationOutcome
Exact host outcome returned by a byte-oriented Plugin invocation.
JsonStreamFrame
Canonical portable JSON frame returned by stream-receive guest exports.
JsonStreamItem
One exact transport frame received from a byte-oriented guest stream.

Constants§

JSON_HOST_IMPORTS_ABI_V1
Stable Request, Stream, and Plan-bound host Capability import ABI.
JSON_HOST_IMPORTS_ABI_V2
Stable Request, Stream, and named Plan-bound Host Capability import ABI.
JSON_INTERACTIONS_ABI_V1
Stable Request and bidirectional Stream guest ABI.
JSON_REQUEST_ABI_V1
Stable request-only guest ABI implemented by byte-oriented Plugin runtimes.

Traits§

JsonCapabilityCodec
Generated typed-value bridge shared by byte-oriented Execution Adapters.
JsonHostStreamSession
Adapter-neutral host Stream session exposed to a byte-oriented guest.
JsonRequestTransport
Guest transport seam shared by Wasm Component and embedded-JavaScript Adapters.
JsonStreamSessionTransport
Adapter-owned transport session for the portable JSON Stream ABI.
JsonStreamTransport
Guest transport seam shared by Stream-capable byte-oriented Adapters.

Functions§

codecs_for_instance
Validates Plan descriptors against registered generated codecs.
codecs_for_requirements
Validates every declared guest requirement against one registered generated codec.
expected_json_plugin_descriptor
Derives the only guest declaration accepted for one resolved Instance.
json_host_invocation_envelope
Encodes a host import Request result into the stable guest envelope.
json_host_stream
Wraps one generated typed host Stream as portable JSON for a guest import.
json_request_endpoints
Builds typed Kernel endpoints over one exact guest transport generation.
json_runtime_failure
Projects a Runtime Failure into a bounded, secret-free guest ABI value.
json_stream_endpoints
Builds typed Kernel Stream endpoints over one exact guest transport generation.
prepare_request_app
Builds exact request bindings from Adapter-prepared Plugin generations.
require_operation
Looks up the exact codec and validates the Operation before dispatch.
validate_json_plugin_descriptor
Parses and compares a guest Ready declaration with exact Plan authority.

Type Aliases§

JsonHostRequestFuture
Result of one Plan-bound host Request import after generated value translation.
JsonHostStreamOpenFuture
Result of opening one Plan-bound host Stream import.
JsonStreamOpenFuture
Adapter-owned result of opening one portable JSON stream transport session.