pub struct WasmBuildBatchEntry { /* private fields */ }Expand description
One ordered caller-labeled result from a Wasm build batch.
Implementations§
Source§impl WasmBuildBatchEntry
impl WasmBuildBatchEntry
Sourcepub const fn index(&self) -> usize
pub const fn index(&self) -> usize
Zero-based position in the supplied labeled specification slice.
Sourcepub const fn result(&self) -> Result<&WasmBuildOutcome, &WasmBuildError>
pub const fn result(&self) -> Result<&WasmBuildOutcome, &WasmBuildError>
Structured success or failure for this entry.
Sourcepub fn outcome(&self) -> Option<&WasmBuildOutcome>
pub fn outcome(&self) -> Option<&WasmBuildOutcome>
Successful Wasm outcome, when this entry succeeded.
Sourcepub fn error(&self) -> Option<&WasmBuildError>
pub fn error(&self) -> Option<&WasmBuildError>
Structured build failure, when this entry failed.
Sourcepub const fn entry_elapsed(&self) -> Duration
pub const fn entry_elapsed(&self) -> Duration
Complete wall-clock time retained for this entry.
Sourcepub const fn is_success(&self) -> bool
pub const fn is_success(&self) -> bool
Whether this entry completed successfully.
Sourcepub fn into_parts(
self,
) -> (usize, String, Result<WasmBuildOutcome, WasmBuildError>, Duration)
pub fn into_parts( self, ) -> (usize, String, Result<WasmBuildOutcome, WasmBuildError>, Duration)
Consume the entry into its ordered identity, result, and wall time.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WasmBuildBatchEntry
impl !UnwindSafe for WasmBuildBatchEntry
impl Freeze for WasmBuildBatchEntry
impl Send for WasmBuildBatchEntry
impl Sync for WasmBuildBatchEntry
impl Unpin for WasmBuildBatchEntry
impl UnsafeUnpin for WasmBuildBatchEntry
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