pub struct PoolExecutionResult {
pub total_tasks: usize,
pub results: Vec<TaskResult>,
pub total_duration_ms: u64,
pub success_count: usize,
pub failed_count: usize,
pub timeout_count: usize,
pub cancelled_count: usize,
}Expand description
Result of pool execution
Fields§
§total_tasks: usizeTotal number of tasks
results: Vec<TaskResult>Individual task results
total_duration_ms: u64Total execution time in milliseconds
success_count: usizeNumber of successful tasks
failed_count: usizeNumber of failed tasks
timeout_count: usizeNumber of timed out tasks
cancelled_count: usizeNumber of cancelled tasks
Implementations§
Source§impl PoolExecutionResult
impl PoolExecutionResult
Sourcepub fn all_successful(&self) -> bool
pub fn all_successful(&self) -> bool
Check if all tasks were successful
Sourcepub fn has_failures(&self) -> bool
pub fn has_failures(&self) -> bool
Check if any tasks failed
Sourcepub fn has_cancellations(&self) -> bool
pub fn has_cancellations(&self) -> bool
Check if any tasks were cancelled
Sourcepub fn success_rate(&self) -> f64
pub fn success_rate(&self) -> f64
Get success rate as percentage
Sourcepub fn failure_rate(&self) -> f64
pub fn failure_rate(&self) -> f64
Get failure rate as percentage
Sourcepub fn average_duration_ms(&self) -> f64
pub fn average_duration_ms(&self) -> f64
Get average task duration in milliseconds
Sourcepub fn min_duration_ms(&self) -> u64
pub fn min_duration_ms(&self) -> u64
Get minimum task duration in milliseconds
Sourcepub fn max_duration_ms(&self) -> u64
pub fn max_duration_ms(&self) -> u64
Get maximum task duration in milliseconds
Sourcepub fn throughput(&self) -> f64
pub fn throughput(&self) -> f64
Get throughput (tasks per second)
Sourcepub fn effective_concurrency(&self) -> f64
pub fn effective_concurrency(&self) -> f64
Get average concurrency (based on actual execution time vs total time)
Sourcepub fn failed_tasks(&self) -> Vec<&TaskResult>
pub fn failed_tasks(&self) -> Vec<&TaskResult>
Get failed tasks
Sourcepub fn timed_out_tasks(&self) -> Vec<&TaskResult>
pub fn timed_out_tasks(&self) -> Vec<&TaskResult>
Get timed out tasks
Sourcepub fn cancelled_tasks(&self) -> Vec<&TaskResult>
pub fn cancelled_tasks(&self) -> Vec<&TaskResult>
Get cancelled tasks
Sourcepub fn successful_tasks(&self) -> Vec<&TaskResult>
pub fn successful_tasks(&self) -> Vec<&TaskResult>
Get successful tasks
Trait Implementations§
Source§impl Clone for PoolExecutionResult
impl Clone for PoolExecutionResult
Source§fn clone(&self) -> PoolExecutionResult
fn clone(&self) -> PoolExecutionResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PoolExecutionResult
impl Debug for PoolExecutionResult
Source§impl<'de> Deserialize<'de> for PoolExecutionResult
impl<'de> Deserialize<'de> for PoolExecutionResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PoolExecutionResult
impl RefUnwindSafe for PoolExecutionResult
impl Send for PoolExecutionResult
impl Sync for PoolExecutionResult
impl Unpin for PoolExecutionResult
impl UnwindSafe for PoolExecutionResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromResponse for Twhere
T: DeserializeOwned,
impl<T> FromResponse for Twhere
T: DeserializeOwned,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more