pub struct SpackInvocation {
pub version: String,
/* private fields */
}Expand description
Builder for spack subprocesss.
Fields§
§version: StringVersion parsed from executing with ‘–version’.
Implementations§
Source§impl SpackInvocation
impl SpackInvocation
Sourcepub async fn create(
python: FoundPython,
repo: SpackRepo,
) -> Result<Self, InvocationSummoningError>
pub async fn create( python: FoundPython, repo: SpackRepo, ) -> Result<Self, InvocationSummoningError>
Create an instance.
You should prefer to call Self::clone on the first instance you
construct instead of repeatedly calling this method when executing
multiple spack subprocesss in a row.
Sourcepub async fn summon() -> Result<Self, InvocationSummoningError>
pub async fn summon() -> Result<Self, InvocationSummoningError>
Create an instance via Self::create, with good defaults.
Trait Implementations§
Source§impl Clone for SpackInvocation
impl Clone for SpackInvocation
Source§fn clone(&self) -> SpackInvocation
fn clone(&self) -> SpackInvocation
Returns a duplicate of the value. Read more
1.0.0 · 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 SpackInvocation
impl RefUnwindSafe for SpackInvocation
impl Send for SpackInvocation
impl Sync for SpackInvocation
impl Unpin for SpackInvocation
impl UnwindSafe for SpackInvocation
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