pub enum NodeState {
Pending,
Active,
Completed,
Failed,
}Expand description
Node execution state
Corresponds to Lean: inductive NodeState
Variants§
Pending
Node is waiting for dependencies
Active
Node is currently executing
Completed
Node completed successfully
Failed
Node failed
Implementations§
Source§impl NodeState
impl NodeState
Sourcepub fn is_pending(&self) -> bool
pub fn is_pending(&self) -> bool
Check if the node is pending
Sourcepub fn is_completed(&self) -> bool
pub fn is_completed(&self) -> bool
Check if the node is completed
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Check if the node is terminal (completed or failed)
Trait Implementations§
impl Copy for NodeState
impl Eq for NodeState
impl StructuralPartialEq for NodeState
Auto Trait Implementations§
impl Freeze for NodeState
impl RefUnwindSafe for NodeState
impl Send for NodeState
impl Sync for NodeState
impl Unpin for NodeState
impl UnsafeUnpin for NodeState
impl UnwindSafe for NodeState
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