pub struct ExecutorContext {
pub input: HandlerInput,
pub submission: Option<Arc<dyn TaskSubmissionPort>>,
pub children: Option<ChildrenSnapshot>,
}Expand description
Full execution context provided to a handler for each attempt.
Extends HandlerInput with optional workflow extensions:
submission: channel for proposing child taskschildren: snapshot of child task states
§Cancellation contract
See HandlerInput for the timeout and cancellation contract.
Fields§
§input: HandlerInputCore execution input: identifiers, payload, metadata, cancellation.
submission: Option<Arc<dyn TaskSubmissionPort>>Optional channel for proposing new child tasks during execution.
Present when the workflow feature is active. Handlers set
parent_task_id on submitted TaskSpecs to establish hierarchy.
children: Option<ChildrenSnapshot>Optional snapshot of child task states, taken at dispatch time.
Present when the dispatched task has children in the hierarchy tracker. Coordinator handlers use this to check progress and decide what to submit.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExecutorContext
impl !RefUnwindSafe for ExecutorContext
impl Send for ExecutorContext
impl Sync for ExecutorContext
impl Unpin for ExecutorContext
impl UnsafeUnpin for ExecutorContext
impl !UnwindSafe for ExecutorContext
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