pub enum ExecutionState {
Running,
Paused(PauseInfo),
Done(ExecutionResult),
Cancelled(CancelInfo),
Failed(FailureInfo),
}Expand description
Rich execution state used by crate::execution::ExecutionService.
This is the v2 variant; the legacy crate::ExecutionState from state.rs remains
untouched for backward compatibility with existing engine consumers.
Variants§
Running
The session is actively executing.
Paused(PauseInfo)
The session is paused, waiting for one or more LLM responses.
Done(ExecutionResult)
The session completed successfully.
Cancelled(CancelInfo)
The session was cancelled cooperatively.
Failed(FailureInfo)
The session ended with an error.
Implementations§
Source§impl ExecutionState
impl ExecutionState
Sourcepub fn tag(&self) -> ExecutionStateTag
pub fn tag(&self) -> ExecutionStateTag
Returns the lightweight tag for this state variant.
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Returns true if this state is a terminal (non-resumable) state.
Trait Implementations§
Source§impl Clone for ExecutionState
impl Clone for ExecutionState
Source§fn clone(&self) -> ExecutionState
fn clone(&self) -> ExecutionState
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 ExecutionState
impl Debug for ExecutionState
Source§impl<'de> Deserialize<'de> for ExecutionState
impl<'de> Deserialize<'de> for ExecutionState
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 From<&ExecutionState> for ExecutionStateTag
impl From<&ExecutionState> for ExecutionStateTag
Source§fn from(state: &ExecutionState) -> Self
fn from(state: &ExecutionState) -> Self
Extracts the discriminant tag from a state reference without cloning the payload.
Auto Trait Implementations§
impl Freeze for ExecutionState
impl RefUnwindSafe for ExecutionState
impl Send for ExecutionState
impl Sync for ExecutionState
impl Unpin for ExecutionState
impl UnsafeUnpin for ExecutionState
impl UnwindSafe for ExecutionState
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