pub struct LoopRunner { /* private fields */ }Expand description
Stateful OODA loop runner that executes repeated verification cycles.
Implementations§
Source§impl LoopRunner
impl LoopRunner
Sourcepub fn new(config: LoopConfig, resources: LoopRunnerResources) -> Self
pub fn new(config: LoopConfig, resources: LoopRunnerResources) -> Self
Creates a loop runner with fresh history and halt state.
Sourcepub fn halt_flag(&self) -> ExternalHaltFlag
pub fn halt_flag(&self) -> ExternalHaltFlag
Returns a cloneable external halt flag for this runner.
Sourcepub fn history(&self) -> &PilotHistory
pub fn history(&self) -> &PilotHistory
Borrows the accumulated pilot history.
Sourcepub async fn observe(&self) -> Result<Observation, PilotError>
pub async fn observe(&self) -> Result<Observation, PilotError>
Runs a single observation against the configured scope and stores.
Sourcepub async fn run(&mut self) -> Result<LoopReport, PilotError>
pub async fn run(&mut self) -> Result<LoopReport, PilotError>
Runs the full OODA loop until a halt condition is reached.
Auto Trait Implementations§
impl !Freeze for LoopRunner
impl !RefUnwindSafe for LoopRunner
impl !UnwindSafe for LoopRunner
impl Send for LoopRunner
impl Sync for LoopRunner
impl Unpin for LoopRunner
impl UnsafeUnpin for LoopRunner
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