pub struct WorkflowTaskState { /* private fields */ }Expand description
Task-local workflow scope: the run stack plus the per-task active-step attribution.
Installed on the owning task’s TaskContextHandle (traced), inherited clone-shared
by spawned children.
Trait Implementations§
Source§impl Default for WorkflowTaskState
impl Default for WorkflowTaskState
Source§impl TaskLocalValue for WorkflowTaskState
impl TaskLocalValue for WorkflowTaskState
Source§fn inherit(&self) -> Rc<dyn TaskLocalValue>
fn inherit(&self) -> Rc<dyn TaskLocalValue>
A spawned child clone-shares the run stack (each Rc<WorkflowCtx> is shared, so
the child journals into the SAME run) and copies the spawner’s active-step
attribution, but inherited scopes reset to token: None (the child cannot tear
down an ancestor’s scope) and it mints from a fresh counter.
fn as_any(&self) -> &dyn Any
Source§fn preflight_error(&self) -> Option<SemaError>
fn preflight_error(&self) -> Option<SemaError>
A task-local extension may fail a task before its next VM quantum. This is for
shared fail-closed state (for example, a workflow child invalidating its owner),
not ordinary language-level cancellation.
Auto Trait Implementations§
impl !Freeze for WorkflowTaskState
impl !RefUnwindSafe for WorkflowTaskState
impl !Send for WorkflowTaskState
impl !Sync for WorkflowTaskState
impl !UnwindSafe for WorkflowTaskState
impl Unpin for WorkflowTaskState
impl UnsafeUnpin for WorkflowTaskState
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