pub struct PipelineResult {
pub output: String,
pub stage_timings: Vec<(String, u64)>,
}Expand description
Result of executing a pipeline, including per-stage timing.
Fields§
§output: StringFinal output value after all stages.
stage_timings: Vec<(String, u64)>Per-stage timing: (stage_name, duration_ms) in execution order.
Implementations§
Source§impl PipelineResult
impl PipelineResult
Sourcepub fn total_duration_ms(&self) -> u64
pub fn total_duration_ms(&self) -> u64
Return the total wall-clock time across all stages in milliseconds.
Sourcepub fn stage_count(&self) -> usize
pub fn stage_count(&self) -> usize
Return the number of stages that recorded a timing entry.
Normally this equals the pipeline’s stage count, but may be less if the pipeline short-circuited after an error.
Sourcepub fn slowest_stage(&self) -> Option<(&str, u64)>
pub fn slowest_stage(&self) -> Option<(&str, u64)>
Return the name and duration of the slowest stage.
Returns None if no stages ran.
Sourcepub fn fastest_stage(&self) -> Option<(&str, u64)>
pub fn fastest_stage(&self) -> Option<(&str, u64)>
Return the name and duration of the fastest stage.
Returns None if no stages ran.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PipelineResult
impl RefUnwindSafe for PipelineResult
impl Send for PipelineResult
impl Sync for PipelineResult
impl Unpin for PipelineResult
impl UnsafeUnpin for PipelineResult
impl UnwindSafe for PipelineResult
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