pub struct WorkflowContext {
pub workflow_id: WorkflowId,
pub current_stage: StageId,
pub state: HashMap<String, Vec<u8>>,
pub metrics: WorkflowMetrics,
pub stage_start: Instant,
}Expand description
Context provided to workflow actions during execution
Fields§
§workflow_id: WorkflowIdWorkflow ID
current_stage: StageIdCurrent stage
state: HashMap<String, Vec<u8>>Shared state between stages
metrics: WorkflowMetricsMetrics collector
stage_start: InstantStart time of current stage
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WorkflowContext
impl RefUnwindSafe for WorkflowContext
impl Send for WorkflowContext
impl Sync for WorkflowContext
impl Unpin for WorkflowContext
impl UnwindSafe for WorkflowContext
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