pub enum LoopOutcome {
Completed(Value),
Parked(ParkReason),
}Expand description
How one drive of the loop ended: it produced a final output, or it parked and the process should stop driving it.
Completed carries the loop’s final output but
does not mean the run’s terminal RunCompleted has been recorded:
drive_loop deliberately leaves that to its caller. [drive] records it
straight away, preserving the built-in loop’s log byte for byte; the graph
engine records it once, after its last node, so an agent loop can run as one
node among many inside a single graph log without each node closing the run.
Variants§
Completed(Value)
The loop produced this final output. The caller records the terminal
RunCompleted.
Parked(ParkReason)
The run is parked durably; resume it later with input.
Trait Implementations§
Source§impl Clone for LoopOutcome
impl Clone for LoopOutcome
Source§fn clone(&self) -> LoopOutcome
fn clone(&self) -> LoopOutcome
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 moreAuto Trait Implementations§
impl Freeze for LoopOutcome
impl RefUnwindSafe for LoopOutcome
impl Send for LoopOutcome
impl Sync for LoopOutcome
impl Unpin for LoopOutcome
impl UnsafeUnpin for LoopOutcome
impl UnwindSafe for LoopOutcome
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