pub struct LoopStatePlugin;Expand description
Plugin that registers the core state keys required by the loop runner.
Must be installed on the StateStore before running the loop.
Trait Implementations§
Source§impl Plugin for LoopStatePlugin
impl Plugin for LoopStatePlugin
fn descriptor(&self) -> PluginDescriptor
Source§fn register(&self, r: &mut PluginRegistrar) -> Result<(), StateError>
fn register(&self, r: &mut PluginRegistrar) -> Result<(), StateError>
Declare capabilities: state keys, hooks, action handlers, effect handlers, permission checkers.
Called once per resolve to build the ExecutionEnv.
Source§fn bind_runtime_context(
&self,
_store: &StateStore,
_owner_inbox: Option<&InboxSender>,
)
fn bind_runtime_context( &self, _store: &StateStore, _owner_inbox: Option<&InboxSender>, )
Bind per-run runtime context to the plugin instance. Read more
Source§fn config_schemas(&self) -> Vec<ConfigSchema>
fn config_schemas(&self) -> Vec<ConfigSchema>
Declare config section schemas for eager validation during resolve. Read more
Source§fn on_activate(
&self,
_agent_spec: &AgentSpec,
_patch: &mut MutationBatch,
) -> Result<(), StateError>
fn on_activate( &self, _agent_spec: &AgentSpec, _patch: &mut MutationBatch, ) -> Result<(), StateError>
Agent activated: read spec config, write initial state.
Called when this plugin becomes active for a specific agent.
Source§fn on_deactivate(&self, _patch: &mut MutationBatch) -> Result<(), StateError>
fn on_deactivate(&self, _patch: &mut MutationBatch) -> Result<(), StateError>
Agent deactivated: clean up agent-scoped state.
Called when switching away from an agent that uses this plugin.
Auto Trait Implementations§
impl Freeze for LoopStatePlugin
impl RefUnwindSafe for LoopStatePlugin
impl Send for LoopStatePlugin
impl Sync for LoopStatePlugin
impl Unpin for LoopStatePlugin
impl UnsafeUnpin for LoopStatePlugin
impl UnwindSafe for LoopStatePlugin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more