Skip to main content

HelperView

Struct HelperView 

Source
pub struct HelperView {
    pub run: Option<String>,
    pub label: String,
    pub phase: RunPhase,
    pub background: bool,
    pub step: Option<Step>,
    pub steps: Vec<usize>,
    pub reason: Option<String>,
    pub stopped_by_owner: bool,
    pub out_of_usage: Option<OutOfUsage>,
    pub took: Option<String>,
    pub since_request: Option<SinceRequest>,
}
Expand description

One helper as every card shows it: the runtime’s record of it.

Fields§

§run: Option<String>

The run it is the record of (its run id), when the sender knows it: a card keeps one entry per run, found by this id, so two runs under one name never share a line (live 2026-11-14: a “Finished … Took 42s” line stood under the WordPress helper’s name while that helper still ran). None: found by its name.

§label: String

The name the owner reads for it.

§phase: RunPhase§background: bool

It works in the background, past the turn that started it.

§step: Option<Step>

Its latest step while it runs.

§steps: Vec<usize>

The plan steps (zero-based) it was started to do, as the spawn call named them: the typed link a later run for the same step supersedes it by (superseded_runs).

§reason: Option<String>

Once it failed or stopped, why, in plain words from its run record (the same sentence its result carries). Never from its reply.

§stopped_by_owner: bool

It stopped because the owner stopped it: its header says so plainly (“Stopped by you”), never as a failure or an error. Set only from its run record’s typed end.

§out_of_usage: Option<OutOfUsage>

It stopped because its coding agent’s account ran out of usage (the agent’s own typed answer): until when, where the agent said.

§took: Option<String>

Once it ended, how long it took and when, as the runtime measured it and already worded for the owner (“Took 21s (2:21:16 PM to 2:21:37 PM ET).”). Never worked out from anything a model wrote.

§since_request: Option<SinceRequest>

Once it ended, how long after the owner’s request that started it, as the runtime measured it: what “how long did it take” means to the owner, request to finish.

Implementations§

Source§

impl HelperView

Source

pub fn running(label: &str, background: bool, step: Option<Step>) -> Self

A helper that is running with step.

Source

pub fn headline(&self) -> &'static str

Its header on a card: how it stands, from its typed record. A run the owner stopped reads “Stopped by you” whether it ran in the background or not.

Source

pub fn of_run(self, run: Option<&str>) -> Self

The same record, of run run (its id), when known.

Source

pub fn same_helper(&self, other: &HelperView) -> bool

Whether other is a record of the same helper: the same run when both name theirs, else the same name.

Source

pub fn for_steps(self, steps: &[usize]) -> Self

The same record, started for the plan steps steps.

Trait Implementations§

Source§

impl Clone for HelperView

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for HelperView

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for HelperView

Source§

impl PartialEq for HelperView

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for HelperView

Auto Trait Implementations§

§

impl Forget for HelperView

§

impl Freeze for HelperView

§

impl Move for HelperView

§

impl RefUnwindSafe for HelperView

§

impl Send for HelperView
where RawVecInner: Send,

§

impl Sync for HelperView
where RawVecInner: Sync,

§

impl Unpin for HelperView
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for HelperView

§

impl UnwindSafe for HelperView
where RawVecInner: UnwindSafe,

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.