pub struct DecisionExecutorRegistry { /* private fields */ }Expand description
Deterministic executor lookup used by the decision runner.
Implementations§
Source§impl DecisionExecutorRegistry
impl DecisionExecutorRegistry
Sourcepub fn register(
&mut self,
executor: Arc<dyn DecisionActionExecutor>,
) -> Result<(), DecisionRunnerError>
pub fn register( &mut self, executor: Arc<dyn DecisionActionExecutor>, ) -> Result<(), DecisionRunnerError>
Registers one executor identity.
Sourcepub fn route_action(
&mut self,
stage: DecisionExecutionStage,
action_id: impl Into<String>,
executor_id: impl Into<String>,
) -> Result<(), DecisionRunnerError>
pub fn route_action( &mut self, stage: DecisionExecutionStage, action_id: impl Into<String>, executor_id: impl Into<String>, ) -> Result<(), DecisionRunnerError>
Routes an action to an executor when the command does not name one.
Active probes and explicitly host-owned low-level commands may carry only an action ID. Separate stage routes allow the explicit probe to use a stricter executor than the original passive action; high-level adaptive and retry commands pin the planner-authorized executor.
Trait Implementations§
Source§impl Clone for DecisionExecutorRegistry
impl Clone for DecisionExecutorRegistry
Source§fn clone(&self) -> DecisionExecutorRegistry
fn clone(&self) -> DecisionExecutorRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for DecisionExecutorRegistry
impl Default for DecisionExecutorRegistry
Source§fn default() -> DecisionExecutorRegistry
fn default() -> DecisionExecutorRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for DecisionExecutorRegistry
impl !UnwindSafe for DecisionExecutorRegistry
impl Freeze for DecisionExecutorRegistry
impl Send for DecisionExecutorRegistry
impl Sync for DecisionExecutorRegistry
impl Unpin for DecisionExecutorRegistry
impl UnsafeUnpin for DecisionExecutorRegistry
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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