pub struct WasmBuildProgressConfig { /* private fields */ }Expand description
Observation settings for one cacheable Wasm build.
Implementations§
Source§impl WasmBuildProgressConfig
impl WasmBuildProgressConfig
Sourcepub fn new() -> Self
pub fn new() -> Self
Observe Cargo output and emit a heartbeat at least every ten quiet seconds.
Sourcepub const fn with_heartbeat_interval(self, interval: Duration) -> Self
pub const fn with_heartbeat_interval(self, interval: Duration) -> Self
Select the maximum quiet interval between Cargo heartbeat events.
A zero interval is rejected before any build work begins.
Sourcepub const fn without_heartbeats(self) -> Self
pub const fn without_heartbeats(self) -> Self
Disable time-based heartbeats while retaining phase and output events.
Sourcepub const fn with_cargo_output(self, emit: bool) -> Self
pub const fn with_cargo_output(self, emit: bool) -> Self
Select whether raw Cargo stdout/stderr chunks are forwarded.
Output is always captured for structured build failures.
Sourcepub const fn heartbeat_interval(self) -> Option<Duration>
pub const fn heartbeat_interval(self) -> Option<Duration>
Configured heartbeat interval, or None when disabled.
Sourcepub const fn emits_cargo_output(self) -> bool
pub const fn emits_cargo_output(self) -> bool
Whether raw Cargo output chunks are emitted to the observer.
Trait Implementations§
Source§impl Clone for WasmBuildProgressConfig
impl Clone for WasmBuildProgressConfig
Source§fn clone(&self) -> WasmBuildProgressConfig
fn clone(&self) -> WasmBuildProgressConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WasmBuildProgressConfig
Source§impl Debug for WasmBuildProgressConfig
impl Debug for WasmBuildProgressConfig
Source§impl Default for WasmBuildProgressConfig
impl Default for WasmBuildProgressConfig
impl Eq for WasmBuildProgressConfig
Source§impl PartialEq for WasmBuildProgressConfig
impl PartialEq for WasmBuildProgressConfig
impl StructuralPartialEq for WasmBuildProgressConfig
Auto Trait Implementations§
impl Freeze for WasmBuildProgressConfig
impl RefUnwindSafe for WasmBuildProgressConfig
impl Send for WasmBuildProgressConfig
impl Sync for WasmBuildProgressConfig
impl Unpin for WasmBuildProgressConfig
impl UnsafeUnpin for WasmBuildProgressConfig
impl UnwindSafe for WasmBuildProgressConfig
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
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
Compare self to
key and return true if they are equal.