pub struct StepContext<'a> {
pub operation_id: &'a str,
pub store: &'a Store,
pub instance: &'a InstanceContext<'a>,
pub def: &'a StackDef,
pub step: &'a Step,
pub source_overrides: &'a BTreeMap<String, String>,
pub dirty: bool,
pub prior: &'a [Checkpoint],
pub parent_resources: &'a [&'a str],
pub cancelled: Option<Arc<AtomicBool>>,
}Expand description
Everything a substrate gets to execute one step.
Fields§
§operation_id: &'a strStable across controller recovery of the same accepted operation.
store: &'a Store§instance: &'a InstanceContext<'a>§def: &'a StackDef§step: &'a Step§source_overrides: &'a BTreeMap<String, String>Recorded --source pins (service → path), local-only.
dirty: boolSnapshot --source pins into instance-owned space instead of using
them in place.
prior: &'a [Checkpoint]Checkpoints recorded so far, in order — earlier steps’ resources (ports, paths, connection strings) live here.
parent_resources: &'a [&'a str]§cancelled: Option<Arc<AtomicBool>>Implementations§
Source§impl StepContext<'_>
impl StepContext<'_>
pub fn is_cancelled(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for StepContext<'a>
impl<'a> RefUnwindSafe for StepContext<'a>
impl<'a> Send for StepContext<'a>
impl<'a> Sync for StepContext<'a>
impl<'a> Unpin for StepContext<'a>
impl<'a> UnsafeUnpin for StepContext<'a>
impl<'a> UnwindSafe for StepContext<'a>
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