pub enum LoopStatus {
Pending,
Running,
Completed,
Rejected,
Aborted,
}Expand description
Lifecycle state of a LoopRecord.
┌─────────┐ AgentStart ┌─────────┐ AgentEnd (ok) ┌───────────┐
│ Pending ├─────────────►│ Running ├───────────────────►│ Completed │
└─────────┘ └────┬────┘ AgentEnd (reject) └───────────┘
│ ┌──────────┐
├─────────────────────────►│ Rejected │
│ flush() └──────────┘
│ ┌─────────┐
└─────────────────────────►│ Aborted │
└─────────┘Variants§
Pending
Loop id appeared in ParallelLoopStart but AgentStart has not yet arrived.
Only used for parallel-evaluation branches that are pre-registered when
AgentEvent::ParallelLoopStart is processed, before their individual
AgentStart events fire.
Running
AgentStart was received; the loop is executing.
Completed
AgentEnd was received and rejection is None; the loop finished normally.
Rejected
AgentEnd was received with rejection: Some(_); an input filter blocked the run.
Aborted
[SessionRecorder::flush] was called before AgentEnd arrived
(e.g. process shutdown or unclean shutdown of the event channel).
Trait Implementations§
Source§impl Clone for LoopStatus
impl Clone for LoopStatus
Source§fn clone(&self) -> LoopStatus
fn clone(&self) -> LoopStatus
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 LoopStatus
impl Debug for LoopStatus
Source§impl<'de> Deserialize<'de> for LoopStatus
impl<'de> Deserialize<'de> for LoopStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LoopStatus
impl PartialEq for LoopStatus
Source§fn eq(&self, other: &LoopStatus) -> bool
fn eq(&self, other: &LoopStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LoopStatus
impl Serialize for LoopStatus
impl StructuralPartialEq for LoopStatus
Auto Trait Implementations§
impl Freeze for LoopStatus
impl RefUnwindSafe for LoopStatus
impl Send for LoopStatus
impl Sync for LoopStatus
impl Unpin for LoopStatus
impl UnsafeUnpin for LoopStatus
impl UnwindSafe for LoopStatus
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