mod plugin_component#

module plugin_component#

Core plugin integration for the adaptive runtime.

Variables

const ADAPTIVE_PLUGIN_KIND: &str#

The plugin kind registered by the adaptive crate.

Functions

fn deregister_adaptive_component() -> bool#

Deregisters the adaptive component kind from the core plugin registry.

This affects future validation and initialization only. Active adaptive runtime registrations remain until cleared or replaced.

Returns

true when the adaptive component kind was removed from the registry and false when it was not registered.

Notes

Active adaptive runtime registrations are not torn down by this function.

fn register_adaptive_component() -> CorePluginResult<()>#

Registers the adaptive component kind in the core plugin registry.

Call this during startup before validating or initializing plugin configs that contain adaptive components.

Returns

A core plugin Result that is Ok(()) when the adaptive component kind is available in the registry.

Errors

Returns an error when registration fails for a reason other than an already registered adaptive component.

Notes

Re-registering the adaptive component is treated as success when the existing registration already resolves to the adaptive plugin kind.

Structs and Unions

struct ComponentSpec#

One configured adaptive component.

enabled: bool#

Whether the adaptive component should be activated.

config: AdaptiveConfig#

Adaptive config for this top-level component.

Implementations

impl ComponentSpec#

Functions

fn new(config: AdaptiveConfig) -> Self#

Creates an enabled adaptive component spec.