nemo-relay-plugin-host
Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
Generic plugin infrastructure for NeMo Relay runtimes.
This module owns:
- config diagnostics and policy enums used by plugin systems
- a global plugin registry
- plugin registration contexts for middleware/subscriber installation
- rollback bookkeeping for registrations created during plugin setup
Re-exports
pub use dynamic::*;
Modules
- composition: Built-in plugin composition supplied by the host or embedding application.
- dynamic: Dynamic plugin control-plane and registry model.
- exporter: Exporter constructors bound to the shared execution runtime. Exporter constructors bound to the execution runtime’s scopes, codecs, and diagnostics.
- resource_metrics: Resource collection and supervised-process integration. Fresh and managed system resource metric observation.
Structs
- ConfigDiagnostic: Structured diagnostic reported while validating or activating plugin configuration.
- ConfigPolicy: Policy for how unsupported plugin/runtime config is handled.
- ConfigReport: Structured configuration and activation report.
- HostPluginRegistrationContext: Host implementation of the shared
PluginRegistrationContextinterface. - PluginComponentSpec: One configured plugin component.
- PluginConfig: Canonical plugin configuration document.
- PluginRegistration: Bookkeeping for one middleware/subscriber registration.
- PluginRollbackOutcome: Result of rolling back a set of plugin registrations.
- RuntimeDiagnostic: Bounded aggregate for a runtime failure observed by an active plugin.
Enums
- DiagnosticLevel: Severity of a plugin configuration or activation diagnostic.
- PluginError: Error type for generic plugin operations.
- PluginRegistrationCleanupOutcome: Outcome of a tracked resource cleanup operation.
- UnsupportedBehavior: Per-policy behavior for unsupported configuration.
Traits
- Plugin: Implemented by custom plugins that register runtime middleware.
- PluginRegistrationContext: Host capabilities available to plugins during component activation.
Functions
- apply_global_config_policy: Applies non-default global policy fields to a component policy.
- deregister_plugin: Removes a previously registered plugin.
- ensure_builtin_plugins_registered: Register built-in plugin kinds supplied by the embedding host.
- initialize_exact: Activate exactly the supplied configuration without implicit discovery.
- initialize_runtime: Install shared default services without activating configured plugins. Explicit services installed by an embedding application remain selected.
- initialize_with_verified_specs: Activate verified artifacts under the host’s configuration lease.
- list_plugin_kinds: Lists registered plugin kinds in sorted order.
- lookup_plugin: Looks up a registered plugin by kind.
- plugin_config_schema: Returns the JSON Schema for the canonical plugin configuration document.
- record_active_plugin_runtime_diagnostic: Updates the existing active-only runtime report.
- register_plugin: Registers a plugin by kind.
- rollback_registrations: Rolls back registrations in reverse order.