pub struct WorkflowTaskOutcome { /* private fields */ }Expand description
A read-only view of what the workflow-task core produced.
It is only obtained from WorkflowTaskNext::run. The worker settles
the core’s own decision, never a returned outcome.
Implementations§
Source§impl WorkflowTaskOutcome
impl WorkflowTaskOutcome
Sourcepub fn commands(&self) -> &[Value]
pub fn commands(&self) -> &[Value]
The commands the worker will submit, in order. Empty when the lease was lost or the task only waits for more history.
This is the view before built-in
ExecutionTelemetry stamps its
observability fields: with telemetry enabled, the submitted commands
also carry those fields. Their order and content are otherwise the
same.
Sourcepub fn is_lease_lost(&self) -> bool
pub fn is_lease_lost(&self) -> bool
The worker lost or released the task’s lease; nothing is reported.
Trait Implementations§
Source§impl Clone for WorkflowTaskOutcome
impl Clone for WorkflowTaskOutcome
Source§fn clone(&self) -> WorkflowTaskOutcome
fn clone(&self) -> WorkflowTaskOutcome
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WorkflowTaskOutcome
impl RefUnwindSafe for WorkflowTaskOutcome
impl Send for WorkflowTaskOutcome
impl Sync for WorkflowTaskOutcome
impl Unpin for WorkflowTaskOutcome
impl UnwindSafe for WorkflowTaskOutcome
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