pub enum StopCondition {
Requests(usize),
Duration(Duration),
Infinite,
}Expand description
Defines when the benchmark should stop
Variants§
Requests(usize)
Stop after N requests
Duration(Duration)
Stop after duration
Infinite
Run until interrupted (Ctrl+C)
Trait Implementations§
Source§impl Clone for StopCondition
impl Clone for StopCondition
Source§fn clone(&self) -> StopCondition
fn clone(&self) -> StopCondition
Returns a duplicate 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 Freeze for StopCondition
impl RefUnwindSafe for StopCondition
impl Send for StopCondition
impl Sync for StopCondition
impl Unpin for StopCondition
impl UnwindSafe for StopCondition
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