pub enum StepStatus {
Pending,
Running,
Done,
Failed,
Skipped,
Cancelled,
Timeout,
Suspended,
Pruned,
}Variants§
Pending
Running
Done
Failed
Skipped
Cancelled
Timeout
Suspended
Waiting on something durable (a timer, a gate, a signal, a budget).
Pruned
The branch this step sits on was not taken, so it will never run — and neither will anything that depends ONLY on it.
Distinct from Skipped, and the distinction is load-bearing. A skipped
step SATISFIES its dependents: that is what lets a workflow with several
start nodes fire one and still run the steps below the others, and what
lets an uneven join proceed without LangGraph’s defer=True. A pruned
step must not satisfy anything, or the tail of a branch nobody chose
runs anyway.
Implementations§
Source§impl StepStatus
impl StepStatus
pub fn is_terminal(self) -> bool
Sourcepub fn is_satisfied(self) -> bool
pub fn is_satisfied(self) -> bool
Counts as satisfied for dependents (done | skipped).
Trait Implementations§
Source§impl Clone for StepStatus
impl Clone for StepStatus
Source§fn clone(&self) -> StepStatus
fn clone(&self) -> StepStatus
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 moreimpl Copy for StepStatus
Source§impl Debug for StepStatus
impl Debug for StepStatus
Source§impl Default for StepStatus
impl Default for StepStatus
Source§fn default() -> StepStatus
fn default() -> StepStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StepStatus
impl<'de> Deserialize<'de> for StepStatus
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
impl Eq for StepStatus
Source§impl PartialEq for StepStatus
impl PartialEq for StepStatus
Source§impl Serialize for StepStatus
impl Serialize for StepStatus
impl StructuralPartialEq for StepStatus
Auto Trait Implementations§
impl Freeze for StepStatus
impl RefUnwindSafe for StepStatus
impl Send for StepStatus
impl Sync for StepStatus
impl Unpin for StepStatus
impl UnsafeUnpin for StepStatus
impl UnwindSafe for StepStatus
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