pub enum ArtifactCachePreparation {
Reused(ArtifactCacheRecord),
Build(ArtifactBuildTransaction),
}Expand description
Result of preparing a transactional artifact-set acquisition.
Variants§
Reused(ArtifactCacheRecord)
A complete verified entry was materialized without running the caller’s build.
Build(ArtifactBuildTransaction)
The caller must populate and commit a transaction-owned staging directory.
Implementations§
Source§impl ArtifactCachePreparation
impl ArtifactCachePreparation
Sourcepub const fn reused_record(&self) -> Option<&ArtifactCacheRecord>
pub const fn reused_record(&self) -> Option<&ArtifactCacheRecord>
Return the already materialized record, or None for a cache miss transaction.
Auto Trait Implementations§
impl Freeze for ArtifactCachePreparation
impl RefUnwindSafe for ArtifactCachePreparation
impl Send for ArtifactCachePreparation
impl Sync for ArtifactCachePreparation
impl Unpin for ArtifactCachePreparation
impl UnsafeUnpin for ArtifactCachePreparation
impl UnwindSafe for ArtifactCachePreparation
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