pub struct AlgorithmStats {
pub total_executions: u64,
pub total_time_ms: u64,
pub average_time_ms: f64,
pub last_execution: Option<u64>,
pub success_rate: f64,
}Expand description
Performance statistics for algorithms
Fields§
§total_executions: u64§total_time_ms: u64§average_time_ms: f64§last_execution: Option<u64>§success_rate: f64Trait Implementations§
Source§impl Clone for AlgorithmStats
impl Clone for AlgorithmStats
Source§fn clone(&self) -> AlgorithmStats
fn clone(&self) -> AlgorithmStats
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 moreAuto Trait Implementations§
impl Freeze for AlgorithmStats
impl RefUnwindSafe for AlgorithmStats
impl Send for AlgorithmStats
impl Sync for AlgorithmStats
impl Unpin for AlgorithmStats
impl UnsafeUnpin for AlgorithmStats
impl UnwindSafe for AlgorithmStats
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