pub struct StackScore {
pub stack: Stack,
pub trials: Vec<TrialResult>,
pub n: usize,
}Expand description
Aggregated metrics for one stack.
Fields§
§stack: Stack§trials: Vec<TrialResult>§n: usizeImplementations§
Source§impl StackScore
impl StackScore
pub fn success_rate(&self) -> f64
pub fn mean_cost(&self) -> f64
pub fn mean_latency(&self) -> f64
pub fn p95_latency(&self) -> f64
Trait Implementations§
Source§impl Clone for StackScore
impl Clone for StackScore
Source§fn clone(&self) -> StackScore
fn clone(&self) -> StackScore
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 StackScore
impl RefUnwindSafe for StackScore
impl Send for StackScore
impl Sync for StackScore
impl Unpin for StackScore
impl UnsafeUnpin for StackScore
impl UnwindSafe for StackScore
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