Skip to main content

Module adapter_common

Module adapter_common 

Source
Expand description

Shared helpers for the three Extism adapter modules.

acquire, extism_err_to_fn_err, and the qname → export-symbol sanitizer were copy-pasted across crate::adapter, crate::adapter_aggregate, and crate::adapter_procedure. They live here once so the lease/error/symbol conventions stay in lock-step across the scalar, aggregate, and procedure adapters.

Functions§

acquire
Lease one warm instance from pool, mapping pool exhaustion to a FnError carrying FnError::CODE_RESOURCE_LIMIT.
extism_err_to_fn_err
Map an Arrow-IPC boundary error to a FnError carrying FnError::CODE_TYPE_COERCION.
sanitize_qname
Sanitize a qname into the .-free stem used in plugin export symbols.