pub struct BenchConfig {
pub request_source: RequestSource,
pub concurrency: usize,
pub stop_condition: StopCondition,
pub timeout: Duration,
pub rate: Option<u64>,
pub rate_fn: Option<RateFunction>,
pub before_request_hooks: Vec<BeforeRequestHook>,
pub after_request_hooks: Vec<AfterRequestHook>,
pub max_retries: usize,
}Expand description
Benchmark configuration
Fields§
§request_source: RequestSource§concurrency: usize§stop_condition: StopCondition§timeout: Duration§rate: Option<u64>§rate_fn: Option<RateFunction>§before_request_hooks: Vec<BeforeRequestHook>§after_request_hooks: Vec<AfterRequestHook>§max_retries: usizeImplementations§
Trait Implementations§
Source§impl Clone for BenchConfig
impl Clone for BenchConfig
Source§fn clone(&self) -> BenchConfig
fn clone(&self) -> BenchConfig
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 BenchConfig
impl !RefUnwindSafe for BenchConfig
impl Send for BenchConfig
impl Sync for BenchConfig
impl Unpin for BenchConfig
impl !UnwindSafe for BenchConfig
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