Expand description
Two-tier plugin system: native Rust plugins (native) and scripted
plugins (script). Defines the Plugin trait — the contract every
graph node implements — and create_plugin, the single factory that
maps node-type strings from YAML config to plugin instances.
Modules§
- native
- Native (built-in) plugins implemented in Rust. Each submodule provides one
node type; instances are constructed by
crate::plugins::create_plugin. - ports
- Static port declarations for every node type.
- resources
- Process-wide services shared by every plugin instance.
- script
- Scripted plugin host (
script). - util
- Shared utilities for plugins.
Structs§
- Plugin
Execution Error - An error that occurs during plugin execution. The context is preserved so the graph engine can route it through the error port.
- Plugin
Output - The result of a successful plugin execution.
Constants§
- KNOWN_
PLUGIN_ TYPES - Every plugin type
create_plugincan build, for save-time validation of references to plugin types (e.g. a shared config’stype). Guarded against drift from the factory’s match arms bytest_known_plugin_types_matches_factory.
Traits§
- Plugin
- Every plugin (native or scripted) implements this trait.
Functions§
- create_
plugin - Creates a plugin instance from a node type string and its YAML-derived config.
- port_
spec - Static port declaration for a node type.
Nonefor unknown types.
Type Aliases§
- Plugin
Result - The result of a plugin execution: either success or an error with the context preserved.