pub struct WasmBuildRecord { /* private fields */ }Expand description
Details shared by built and reused Wasm outcomes.
Implementations§
Source§impl WasmBuildRecord
impl WasmBuildRecord
Sourcepub const fn fingerprint(&self) -> InputDigest
pub const fn fingerprint(&self) -> InputDigest
Exact build fingerprint used by the atomic cache stamp.
Sourcepub const fn input_digest(&self) -> InputDigest
pub const fn input_digest(&self) -> InputDigest
Semantic digest of selected package sources and configuration inputs.
Sourcepub fn exact_cache_path(&self) -> &Path
pub fn exact_cache_path(&self) -> &Path
Immutable content-addressed cache directory for this exact build.
The directory is selected by the build fingerprint and contains the cached Wasm artifacts and their stamps. The record and its clones retain this entry against pruning until their last drop. A copied path alone does not retain ownership. Treat the contents as read-only.
Sourcepub fn artifacts(&self) -> &[PathBuf]
pub fn artifacts(&self) -> &[PathBuf]
Exact, read-only Wasm paths retained until this record and its clones drop.
Keep a record alive throughout post-link processing and reading. Configured materialization destinations remain mutable and are not retained.
Sourcepub const fn timings(&self) -> WasmBuildTimings
pub const fn timings(&self) -> WasmBuildTimings
Phase timings captured by the cacheable build operation.
Sourcepub const fn maintenance(&self) -> Option<&ArtifactCacheMaintenance>
pub const fn maintenance(&self) -> Option<&ArtifactCacheMaintenance>
Cache maintenance attempted under the build lock, when configured.
Scheduled caller-owned shared-target maintenance, when configured.
Trait Implementations§
Source§impl Clone for WasmBuildRecord
impl Clone for WasmBuildRecord
Source§impl Debug for WasmBuildRecord
impl Debug for WasmBuildRecord
impl Eq for WasmBuildRecord
Source§impl PartialEq for WasmBuildRecord
impl PartialEq for WasmBuildRecord
impl StructuralPartialEq for WasmBuildRecord
Auto Trait Implementations§
impl Freeze for WasmBuildRecord
impl RefUnwindSafe for WasmBuildRecord
impl Send for WasmBuildRecord
impl Sync for WasmBuildRecord
impl Unpin for WasmBuildRecord
impl UnsafeUnpin for WasmBuildRecord
impl UnwindSafe for WasmBuildRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.