#[non_exhaustive]pub enum DecisionLoopCommand {
ExecuteAction {
case: VerificationCase,
executor: Option<String>,
origin: DecisionActionOrigin,
delay_ms: Option<u64>,
},
CollectActiveEvidence {
case: VerificationCase,
},
Replan,
Complete {
case: VerificationCase,
},
AwaitHumanReview {
case: VerificationCase,
},
Halt {
reason: DecisionStopReason,
},
}Expand description
Side-effect-free command consumed by a runner or scheduler.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ExecuteAction
Execute one action and record its observations as evidence.
Fields
§
case: VerificationCaseVerification identity attached to the execution.
§
origin: DecisionActionOriginSource of the execution request.
CollectActiveEvidence
Collect explicit probe evidence for an unresolved case.
Fields
§
case: VerificationCaseCase awaiting active evidence.
Replan
Re-run reasoning and utility planning.
Complete
Stop because the current objective was verified.
Fields
§
case: VerificationCaseCompleted verification case.
AwaitHumanReview
Preserve the case for a human decision.
Fields
§
case: VerificationCaseCase requiring review.
Halt
Stop deterministically at a loop boundary.
Fields
§
reason: DecisionStopReasonReason no further command will be emitted.
Trait Implementations§
Source§impl Clone for DecisionLoopCommand
impl Clone for DecisionLoopCommand
Source§fn clone(&self) -> DecisionLoopCommand
fn clone(&self) -> DecisionLoopCommand
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 Debug for DecisionLoopCommand
impl Debug for DecisionLoopCommand
impl Eq for DecisionLoopCommand
Source§impl PartialEq for DecisionLoopCommand
impl PartialEq for DecisionLoopCommand
Source§impl Serialize for DecisionLoopCommand
impl Serialize for DecisionLoopCommand
impl StructuralPartialEq for DecisionLoopCommand
Auto Trait Implementations§
impl Freeze for DecisionLoopCommand
impl RefUnwindSafe for DecisionLoopCommand
impl Send for DecisionLoopCommand
impl Sync for DecisionLoopCommand
impl Unpin for DecisionLoopCommand
impl UnsafeUnpin for DecisionLoopCommand
impl UnwindSafe for DecisionLoopCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more