pub enum KernelTerminal {
Agent(AgentTerminal),
Workflow(WorkflowTerminal),
Cancelled(CancelledTerminal),
Failed(FailedTerminal),
}Expand description
How an operation ended.
Variants§
Agent(AgentTerminal)
An agent root finished its loop.
Workflow(WorkflowTerminal)
A workflow root finished its DAG. A workflow completion commits this terminal itself —
there is no external “complete the run” input, which is the only reason the historical
CompleteRun existed.
Cancelled(CancelledTerminal)
The operation was cancelled. Cancellation is never an effect failure: it arrives only
through HostControl::Cancel.
Failed(FailedTerminal)
The kernel itself could not continue — a recovery ladder ran out, an invariant broke.
Implementations§
Source§impl KernelTerminal
impl KernelTerminal
Sourcepub fn usage(&self) -> &UsageReport
pub fn usage(&self) -> &UsageReport
The one place a run’s accounting is committed.
Trait Implementations§
Source§impl Clone for KernelTerminal
impl Clone for KernelTerminal
Source§fn clone(&self) -> KernelTerminal
fn clone(&self) -> KernelTerminal
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 KernelTerminal
impl Debug for KernelTerminal
Source§impl<'de> Deserialize<'de> for KernelTerminal
impl<'de> Deserialize<'de> for KernelTerminal
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 KernelTerminal
impl PartialEq for KernelTerminal
Source§impl Serialize for KernelTerminal
impl Serialize for KernelTerminal
impl StructuralPartialEq for KernelTerminal
Auto Trait Implementations§
impl Freeze for KernelTerminal
impl RefUnwindSafe for KernelTerminal
impl Send for KernelTerminal
impl Sync for KernelTerminal
impl Unpin for KernelTerminal
impl UnsafeUnpin for KernelTerminal
impl UnwindSafe for KernelTerminal
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