pub struct ExecutionStatistics {
pub total_executions: u64,
pub successful_executions: u64,
pub failed_executions: u64,
pub total_execution_time: Duration,
pub average_execution_time: Duration,
pub total_contexts_created: u64,
pub peak_concurrent_executions: u32,
}Expand description
Execution statistics
Fields§
§total_executions: u64Total executions started
successful_executions: u64Successful executions
failed_executions: u64Failed executions
total_execution_time: DurationTotal execution time
average_execution_time: DurationAverage execution time
total_contexts_created: u64Total contexts created
peak_concurrent_executions: u32Peak concurrent executions
Implementations§
Source§impl ExecutionStatistics
impl ExecutionStatistics
pub fn new() -> Self
Sourcepub fn success_rate(&self) -> f64
pub fn success_rate(&self) -> f64
Get execution success rate
Sourcepub fn update_averages(&mut self)
pub fn update_averages(&mut self)
Update average execution time
Trait Implementations§
Source§impl Clone for ExecutionStatistics
impl Clone for ExecutionStatistics
Source§fn clone(&self) -> ExecutionStatistics
fn clone(&self) -> ExecutionStatistics
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 ExecutionStatistics
impl Debug for ExecutionStatistics
Auto Trait Implementations§
impl Freeze for ExecutionStatistics
impl RefUnwindSafe for ExecutionStatistics
impl Send for ExecutionStatistics
impl Sync for ExecutionStatistics
impl Unpin for ExecutionStatistics
impl UnwindSafe for ExecutionStatistics
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> 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