pub struct InstallPlan {
pub steps: Vec<InstallStep>,
pub resources: Vec<ResourceSpec>,
pub patches: Vec<PatchSpec>,
pub env: HashMap<String, String>,
pub deparallelize: bool,
}Expand description
A typed, executable install plan parsed from a formula’s def install.
Fields§
§steps: Vec<InstallStep>Ordered steps (InstallStep::ApplyPatch steps come first, then the
install body in source order).
resources: Vec<ResourceSpec>Declared resource blocks.
patches: Vec<PatchSpec>Declared patch blocks.
env: HashMap<String, String>Final environment after all ENV[...]= / ENV.append / ENV.prepend
sets (each set is also a step, resolved at its point in the plan).
deparallelize: boolENV.deparallelize was called — run make with -j1.
Implementations§
Source§impl InstallPlan
impl InstallPlan
Sourcepub fn is_fully_supported(&self) -> bool
pub fn is_fully_supported(&self) -> bool
true when the plan contains no InstallStep::Unsupported steps and
can therefore be executed natively.
Sourcepub fn unsupported_constructs(&self) -> Vec<&str>
pub fn unsupported_constructs(&self) -> Vec<&str>
The source text of every unsupported construct, in plan order.
Trait Implementations§
Source§impl Clone for InstallPlan
impl Clone for InstallPlan
Source§fn clone(&self) -> InstallPlan
fn clone(&self) -> InstallPlan
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 moreSource§impl Debug for InstallPlan
impl Debug for InstallPlan
Source§impl<'de> Deserialize<'de> for InstallPlan
impl<'de> Deserialize<'de> for InstallPlan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InstallPlan
impl PartialEq for InstallPlan
Source§fn eq(&self, other: &InstallPlan) -> bool
fn eq(&self, other: &InstallPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InstallPlan
impl Serialize for InstallPlan
impl StructuralPartialEq for InstallPlan
Auto Trait Implementations§
impl Freeze for InstallPlan
impl RefUnwindSafe for InstallPlan
impl Send for InstallPlan
impl Sync for InstallPlan
impl Unpin for InstallPlan
impl UnsafeUnpin for InstallPlan
impl UnwindSafe for InstallPlan
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