pub struct RootAttempt { /* private fields */ }Expand description
First-local guard for one root binding, including early return and unwind.
All methods release their internal borrow before returning to the caller. No borrow is held across expression evaluation, binding or native callbacks.
Implementations§
Source§impl RootAttempt
impl RootAttempt
Sourcepub fn new(name: &str, initial_phase: u8, source_kind: SourceKind) -> Self
pub fn new(name: &str, initial_phase: u8, source_kind: SourceKind) -> Self
Begin an attempt with bounded name metadata and no runtime owners. Its local clock starts before the optional event entry is published.
Sourcepub fn source_started(&self)
pub fn source_started(&self)
Immediately before source evaluation or document cloning in the producer.
Sourcepub fn source_evaluated(&self)
pub fn source_evaluated(&self)
After successful source evaluation, before recursive type binding.
Sourcepub fn binding_returned(&self)
pub fn binding_returned(&self)
After recursive binding returns either a value or an error.
Sourcepub fn dispatch_returned(&self, outcome: Outcome)
pub fn dispatch_returned(&self, outcome: Outcome)
After step/Edits dispatch returns, before the existing result handler. Call with Bound, Defer, EvalError or Taint; this does not infer producer work.
Sourcepub fn body_returned(&self, completion: Completion)
pub fn body_returned(&self, completion: Completion)
After the result handler’s actual publication, queue, report or taint action.