Skip to main content

RootAttempt

Struct RootAttempt 

Source
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

Source

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.

Source

pub fn source_started(&self)

Immediately before source evaluation or document cloning in the producer.

Source

pub fn source_evaluated(&self)

After successful source evaluation, before recursive type binding.

Source

pub fn binding_returned(&self)

After recursive binding returns either a value or an error.

Source

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.

Source

pub fn body_returned(&self, completion: Completion)

After the result handler’s actual publication, queue, report or taint action.

Source

pub fn skipped(&self)

The retained round skipped this root before dispatch or source production.

Trait Implementations§

Source§

impl Drop for RootAttempt

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.