Skip to main content

Module plugins

Module plugins 

Source
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§

PluginExecutionError
An error that occurs during plugin execution. The context is preserved so the graph engine can route it through the error port.
PluginOutput
The result of a successful plugin execution.

Constants§

KNOWN_PLUGIN_TYPES
Every plugin type create_plugin can build, for save-time validation of references to plugin types (e.g. a shared config’s type). Guarded against drift from the factory’s match arms by test_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. None for unknown types.

Type Aliases§

PluginResult
The result of a plugin execution: either success or an error with the context preserved.