Skip to main content

Module adapters

Module adapters 

Source
Expand description

Opt-in, descriptor-checked native adapters. Generated adapters are separate files: applications include them in the modules that own their native API.

Structs§

AdapterConfig
Opt-in, descriptor-checked adapter declarations.
AdapterError
Fixed adapter failure. Input names, paths and bytes are never retained.
BorrowedAdapter
Lifetime-bearing adapter. It deliberately has no derived diagnostics.
CapabilityPort
Process-local capability supplied by the application, never serialized.
ClosedSelector
Closed native enum; zero and unknown values always fail conversion.
ErrorMapping
Domain error construction using paths only, never expressions or messages.
FieldSource
A declared schema field reached through singular message fields.
LegacySelector
Additional legacy wire enum accepted by a closed selector.
Normalization
Explicit normalization of a legacy value to an existing canonical case.
PayloadField
One payload field and its checked representation.
PayloadSelector
Copy enum combining a selector with an explicitly validated native value.
PayloadVariant
Native case covering one or more authoritative descriptor alternatives.
SelectorVariant
A nonzero canonical selector case.
WireEnum
Descriptor enum and its already-generated Rust wire type.

Enums§

BorrowedSource
Authoritative cases for a borrowed adapter.
ErrorReason
Deterministic, allocation-free reason for rejecting adapter metadata.
Payload
Shape of one native enum alternative.
PayloadType
Restricted representation of a payload field.

Constants§

MAX_MANIFEST_BYTES
Maximum encoded size of an adapter manifest (1 MiB).

Functions§

generate_adapters
Generate standalone native adapter files, validating complete coverage first.