pub enum NodeStatus {
Pending,
Running,
Succeeded,
Failed,
Parked,
}Expand description
The lifecycle status of a node (MCP_SKILLS.md §12 scheduler).
Variants§
Pending
Not yet started.
Running
Dispatched and running (or interrupted mid-run).
Succeeded
Completed successfully.
Failed
Ran and failed.
Parked
Parked awaiting a human (checkpoint / stuck escalation).
Implementations§
Source§impl NodeStatus
impl NodeStatus
Sourcepub fn parse_label(s: &str) -> NodeStatus
pub fn parse_label(s: &str) -> NodeStatus
Parse a stored string form back into a status (defaults to Pending).
Prefer std::str::FromStr when an error on unknown values is needed;
this keeps the historical lenient mapping used by persistence.
Sourcepub fn from_str(s: &str) -> NodeStatus
pub fn from_str(s: &str) -> NodeStatus
Backward-compatible alias for Self::parse_label.
pub fn label(self) -> &'static str
pub fn is_terminal_success(self) -> bool
Trait Implementations§
Source§impl Clone for NodeStatus
impl Clone for NodeStatus
Source§fn clone(&self) -> NodeStatus
fn clone(&self) -> NodeStatus
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 NodeStatus
Source§impl Debug for NodeStatus
impl Debug for NodeStatus
impl Eq for NodeStatus
Source§impl PartialEq for NodeStatus
impl PartialEq for NodeStatus
impl StructuralPartialEq for NodeStatus
Auto Trait Implementations§
impl Forget for NodeStatus
impl Freeze for NodeStatus
impl Move for NodeStatus
impl RefUnwindSafe for NodeStatus
impl Send for NodeStatus
impl Sync for NodeStatus
impl Unpin for NodeStatus
impl UnsafeUnpin for NodeStatus
impl UnwindSafe for NodeStatus
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