Skip to main content

Module dispatch

Module dispatch 

Source
Expand description

Plugin dispatch: classify a plugin reference into a runtime, then run it.

This is the single entry point the loader uses to invoke a plugin "..." reference. It is deliberately split into two phases:

Errors are typed (not host LedgerErrors) so the loader keeps ownership of its error-code convention: it maps these kinds to E8001/E8002/E8004/E8005 and records diagnostics through one uniform path. The split lets the loader build wrappers and apply ops once per plugin instead of once per runtime.

Enums§

PluginPass
Which pass’s native plugins to resolve.
PluginResolveError
Why a plugin reference could not be resolved to a runnable runtime. The host maps each kind to its own error code and message.
PluginRunError
Why a resolved plugin failed at runtime (load or execution).
ResolvedPlugin
A plugin reference resolved to a concrete runtime, ready to run.

Functions§

resolve_plugin
Classify a plugin invocation into a runnable ResolvedPlugin.