Struct jortestkit::load::ConfigurationBuilder
source · pub struct ConfigurationBuilder {
fetch_limit: Option<usize>,
monitor: Monitor,
shutdown_grace_period: Duration,
status_pace: Duration,
step_delay: Duration,
strategy: Strategy,
thread_no: usize,
}
Fields§
§fetch_limit: Option<usize>
§monitor: Monitor
§shutdown_grace_period: Duration
§status_pace: Duration
§step_delay: Duration
§strategy: Strategy
§thread_no: usize
Implementations§
source§impl ConfigurationBuilder
impl ConfigurationBuilder
pub fn duration(duration: Duration) -> Self
pub fn overall_requests(n_requests: u32) -> Self
pub fn requests_per_thread(n_requests: u32) -> Self
pub fn fetch_limit(self, fetch_limit: usize) -> Self
pub fn monitor(self, monitor: Monitor) -> Self
pub fn shutdown_grace_period(self, shutdown_grace_period: Duration) -> Self
pub fn status_pace(self, status_pace: Duration) -> Self
pub fn step_delay(self, step_delay: Duration) -> Self
pub fn thread_no(self, thread_no: usize) -> Self
pub fn build(self) -> Configuration
Auto Trait Implementations§
impl RefUnwindSafe for ConfigurationBuilder
impl Send for ConfigurationBuilder
impl Sync for ConfigurationBuilder
impl Unpin for ConfigurationBuilder
impl UnwindSafe for ConfigurationBuilder
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