Skip to main content

RootRecord

Struct RootRecord 

Source
pub struct RootRecord {
Show 13 fields pub root_name: String, pub root_name_original_bytes: usize, pub root_name_truncated: bool, pub initial_phase: u8, pub source_kind: SourceKind, pub producer_calls: usize, pub source_successes: usize, pub binding_returns: usize, pub dispatch_outcome: Option<Outcome>, pub completion: Option<Completion>, pub outcome: Outcome, pub interrupted_stage: Option<&'static str>, pub span: Span,
}
Expand description

One root attempt, submitted in completion order to this thread’s buffer.

Fields§

§root_name: String

UTF-8 root name prefix bounded by ROOT_NAME_LIMIT.

§root_name_original_bytes: usize

Byte length of the original name before capping.

§root_name_truncated: bool

Whether the stored name omits an original suffix.

§initial_phase: u8

Engine phase at entry; callbacks may change the phase later.

§source_kind: SourceKind

Origin of the source supplied to this attempt.

§producer_calls: usize

Number of actual producer calls; zero includes a successful Edits reuse.

§source_successes: usize

Source evaluation returned successfully, rather than deferring or failing.

§binding_returns: usize

Recursive binding returned a Result, including an error Result.

§dispatch_outcome: Option<Outcome>

Result observed immediately after dispatch; absent for skip or unwind.

§completion: Option<Completion>

Handler action, absent if it did not finish normally.

§outcome: Outcome

Final outcome; unwind overrides any earlier dispatch result.

§interrupted_stage: Option<&'static str>

Active interval when normal body completion was interrupted.

§span: Span

Local span only: it is never submitted to evaluation’s global span list.

Trait Implementations§

Source§

impl Serialize for RootRecord

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. 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.