pub struct Engine { /* private fields */ }Expand description
The install engine, bound to a $VANTA_HOME.
Implementations§
Source§impl Engine
impl Engine
Sourcepub fn open(home: impl AsRef<Path>) -> VtaResult<Engine>
pub fn open(home: impl AsRef<Path>) -> VtaResult<Engine>
Open the engine over home ($VANTA_HOME).
pub fn state(&self) -> &State
Sourcepub fn install_artifact(
&self,
tool: &str,
version: &str,
artifact: &Artifact,
) -> VtaResult<StoreKey>
pub fn install_artifact( &self, tool: &str, version: &str, artifact: &Artifact, ) -> VtaResult<StoreKey>
Install one resolved artifact for the current platform, returning its store key. Fetch → verify → materialize → publish → commit a generation. A store hit short-circuits fetch/verify/materialize.
Sourcepub fn bundle_current(&self, out: &Path) -> VtaResult<usize>
pub fn bundle_current(&self, out: &Path) -> VtaResult<usize>
Bundle the active generation’s store entries into a portable archive
(docs/13-offline.md). Returns the number of entries written.
Auto Trait Implementations§
impl !RefUnwindSafe for Engine
impl !UnwindSafe for Engine
impl Freeze for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnsafeUnpin for Engine
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