pub struct Install {
pub spack: SpackInvocation,
pub spec: CLISpec,
pub verbosity: InstallVerbosity,
pub env: Option<EnvName>,
}Expand description
Install request.
Fields§
§spack: SpackInvocation§spec: CLISpec§verbosity: InstallVerbosity§env: Option<EnvName>Implementations§
source§impl Install
impl Install
sourcepub async fn install(self) -> Result<(), InstallError>
pub async fn install(self) -> Result<(), InstallError>
Execute spack install "$self.spec", piping stdout and stderr to the
terminal.
sourcepub async fn install_find(self) -> Result<FoundSpec, InstallError>
pub async fn install_find(self) -> Result<FoundSpec, InstallError>
Execute Self::install, then execute Find::find.
sourcepub async fn install_with_env(
self,
load_env: EnvModifications
) -> Result<(), InstallError>
pub async fn install_with_env( self, load_env: EnvModifications ) -> Result<(), InstallError>
Do Self::install, but after sourcing the contents of load_env.
FIXME: DOCUMENT AND TEST!!
Trait Implementations§
source§impl CommandBase for Install
impl CommandBase for Install
source§async fn setup_command(self) -> Result<Command, SetupError>
async fn setup_command(self) -> Result<Command, SetupError>
Generate a command line from the given object.
Auto Trait Implementations§
impl RefUnwindSafe for Install
impl Send for Install
impl Sync for Install
impl Unpin for Install
impl UnwindSafe for Install
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