pub struct AggregationSummary {
pub successful: usize,
pub failed: usize,
pub total: usize,
pub avg_duration_secs: f64,
pub total_duration_secs: f64,
}Expand description
Summary statistics for aggregated results
Fields§
§successful: usizeNumber of successful operations
failed: usizeNumber of failed operations
total: usizeTotal number of operations
avg_duration_secs: f64Average duration in seconds
total_duration_secs: f64Total duration in seconds
Implementations§
Source§impl AggregationSummary
impl AggregationSummary
Sourcepub fn from_results(results: &[AgentResult]) -> Self
pub fn from_results(results: &[AgentResult]) -> Self
Create a summary from agent results
Trait Implementations§
Source§impl Clone for AggregationSummary
impl Clone for AggregationSummary
Source§fn clone(&self) -> AggregationSummary
fn clone(&self) -> AggregationSummary
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 moreSource§impl Debug for AggregationSummary
impl Debug for AggregationSummary
Source§impl<'de> Deserialize<'de> for AggregationSummary
impl<'de> Deserialize<'de> for AggregationSummary
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
Source§impl PartialEq for AggregationSummary
impl PartialEq for AggregationSummary
Source§fn eq(&self, other: &AggregationSummary) -> bool
fn eq(&self, other: &AggregationSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AggregationSummary
impl Serialize for AggregationSummary
impl StructuralPartialEq for AggregationSummary
Auto Trait Implementations§
impl Freeze for AggregationSummary
impl RefUnwindSafe for AggregationSummary
impl Send for AggregationSummary
impl Sync for AggregationSummary
impl Unpin for AggregationSummary
impl UnsafeUnpin for AggregationSummary
impl UnwindSafe for AggregationSummary
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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