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.
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.

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.

Type Aliases§

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