#[non_exhaustive]pub enum WasmBuildProgressEvent {
Started,
InputsResolved {
fingerprint: InputDigest,
input_digest: InputDigest,
elapsed: Duration,
},
CacheMiss {
fingerprint: InputDigest,
},
CacheHit {
fingerprint: InputDigest,
},
SharedTargetLockStarted {
target_dir: PathBuf,
},
SharedTargetLockAcquired {
target_dir: PathBuf,
wait: Duration,
},
CargoStarted {
target_dir: PathBuf,
},
CargoOutput {
stream: WasmBuildOutputStream,
bytes: Vec<u8>,
},
CargoHeartbeat {
elapsed: Duration,
},
CargoFinished {
success: bool,
code: Option<i32>,
elapsed: Duration,
},
Finished {
outcome: WasmBuildProgressOutcome,
fingerprint: InputDigest,
elapsed: Duration,
},
}Expand description
Structured progress emitted by an observed cacheable Wasm build.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Started
One build/cache acquisition started.
InputsResolved
One exact Cargo input-resolution pass completed.
Fields
fingerprint: InputDigestComplete exact build fingerprint.
input_digest: InputDigestSource/configuration-only digest.
CacheMiss
No reusable exact entry existed for this fingerprint.
Fields
fingerprint: InputDigestMissing exact fingerprint.
CacheHit
Exact artifacts were found and materialized when necessary.
Fields
fingerprint: InputDigestReused exact fingerprint.
The build is about to wait for a caller-owned shared Cargo target.
Exclusive shared-target ownership was acquired.
CargoStarted
Cargo compilation started.
CargoOutput
One raw Cargo output chunk was read without lossy UTF-8 conversion.
Fields
stream: WasmBuildOutputStreamChild-process stream that produced the bytes.
CargoHeartbeat
Cargo remained active without another emitted output chunk.
CargoFinished
Cargo exited and all captured output was drained.
Fields
Finished
The complete cacheable build operation succeeded.
Fields
outcome: WasmBuildProgressOutcomeWhether Cargo ran or an exact entry was reused.
fingerprint: InputDigestExact fingerprint selected by the operation.
Trait Implementations§
Source§impl Clone for WasmBuildProgressEvent
impl Clone for WasmBuildProgressEvent
Source§fn clone(&self) -> WasmBuildProgressEvent
fn clone(&self) -> WasmBuildProgressEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WasmBuildProgressEvent
impl Debug for WasmBuildProgressEvent
impl Eq for WasmBuildProgressEvent
Source§impl PartialEq for WasmBuildProgressEvent
impl PartialEq for WasmBuildProgressEvent
impl StructuralPartialEq for WasmBuildProgressEvent
Auto Trait Implementations§
impl Freeze for WasmBuildProgressEvent
impl RefUnwindSafe for WasmBuildProgressEvent
impl Send for WasmBuildProgressEvent
impl Sync for WasmBuildProgressEvent
impl Unpin for WasmBuildProgressEvent
impl UnsafeUnpin for WasmBuildProgressEvent
impl UnwindSafe for WasmBuildProgressEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.