pub struct AggregatedStats { /* private fields */ }Expand description
Contains the aggregated statistics for multiple repetitions of the same experiment.
Implementations§
Source§impl AggregatedStats
impl AggregatedStats
Sourcepub fn new(name: String, party_names: Vec<String>) -> Self
pub fn new(name: String, party_names: Vec<String>) -> Self
Constructs AggregatedStats with the given name for tracking statistics.
Sourcepub fn incorporate_party_stats(&mut self, party_stats: Vec<Timings>)
pub fn incorporate_party_stats(&mut self, party_stats: Vec<Timings>)
Incorporates each party’s resulting statistics into this aggregate.
Sourcepub fn output_party_csv(&self, party_id: usize, csv_filename: &str)
pub fn output_party_csv(&self, party_id: usize, csv_filename: &str)
Outputs one party’s timings to a csv named csv_filename.
Sourcepub fn summarize_timings(&self) -> TimingSummary
pub fn summarize_timings(&self) -> TimingSummary
Summarizes the timings of all parties.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AggregatedStats
impl RefUnwindSafe for AggregatedStats
impl Send for AggregatedStats
impl Sync for AggregatedStats
impl Unpin for AggregatedStats
impl UnsafeUnpin for AggregatedStats
impl UnwindSafe for AggregatedStats
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> 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