pub struct StepContext<'a> {
pub instance: &'a str,
pub def: &'a StackDef,
pub step: &'a Step,
pub source_overrides: &'a BTreeMap<String, String>,
pub dirty: bool,
pub prior: &'a [Checkpoint],
}Expand description
Everything a substrate gets to execute one step.
Fields§
§instance: &'a str§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.
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