Struct jortestkit::measurement::EfficiencyBenchmarkDef
source · pub struct EfficiencyBenchmarkDef {
name: String,
thresholds: Option<Thresholds<Efficiency>>,
max: Counter,
}
Fields§
§name: String
§thresholds: Option<Thresholds<Efficiency>>
§max: Counter
Implementations§
source§impl EfficiencyBenchmarkDef
impl EfficiencyBenchmarkDef
pub fn new(name: String) -> Self
pub fn name(&self) -> String
pub fn target(&mut self, target: u32) -> &mut Self
pub fn no_target(&mut self) -> &mut Self
pub fn max(&self) -> Counter
pub fn thresholds(&self) -> Option<&Thresholds<Efficiency>>
pub fn start(&self) -> EfficiencyBenchmarkRun
Trait Implementations§
source§impl Clone for EfficiencyBenchmarkDef
impl Clone for EfficiencyBenchmarkDef
source§fn clone(&self) -> EfficiencyBenchmarkDef
fn clone(&self) -> EfficiencyBenchmarkDef
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for EfficiencyBenchmarkDef
impl Send for EfficiencyBenchmarkDef
impl Sync for EfficiencyBenchmarkDef
impl Unpin for EfficiencyBenchmarkDef
impl UnwindSafe for EfficiencyBenchmarkDef
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