pub struct LifecyclePlan { /* private fields */ }Expand description
Topologically sorted execution plan.
Implementations§
Source§impl LifecyclePlan
impl LifecyclePlan
Sourcepub fn env_report(&self, extra_env: &HashMap<String, String>) -> EnvReport
pub fn env_report(&self, extra_env: &HashMap<String, String>) -> EnvReport
Classify every ${env.*} reference in this plan against the ambient
process environment plus extra_env (which takes precedence).
Only environment values and command arguments are scanned, matching
the sites resolved at start time. The resolved-or-missing decision
delegates to the same Interpolator the runtime uses, so an empty
value counts as unset and this report mirrors a real preflight.
Source§impl LifecyclePlan
impl LifecyclePlan
Sourcepub fn from_manifest(manifest: &Manifest) -> Result<Self, LifecycleError>
pub fn from_manifest(manifest: &Manifest) -> Result<Self, LifecycleError>
Build a plan from a parsed manifest.
Resolves the dependency graph, performs a topological sort and
converts every resource to a ContainerSpec.
Sourcepub fn dependents_of(&self, name: &str) -> Vec<&str>
pub fn dependents_of(&self, name: &str) -> Vec<&str>
Names of resources that depend on name.
Trait Implementations§
Source§impl Clone for LifecyclePlan
impl Clone for LifecyclePlan
Source§fn clone(&self) -> LifecyclePlan
fn clone(&self) -> LifecyclePlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LifecyclePlan
impl RefUnwindSafe for LifecyclePlan
impl Send for LifecyclePlan
impl Sync for LifecyclePlan
impl Unpin for LifecyclePlan
impl UnsafeUnpin for LifecyclePlan
impl UnwindSafe for LifecyclePlan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request