pub struct LoadTest;Expand description
Load test runner.
Implementations§
Source§impl LoadTest
impl LoadTest
Sourcepub fn run<F>(config: &LoadTestConfig, handler: F) -> LoadTestReport
pub fn run<F>(config: &LoadTestConfig, handler: F) -> LoadTestReport
Run a synchronous load test.
The handler receives a request index and returns Ok(()) on success
or Err on failure. Concurrency is simulated via round-robin
across worker batches.
Auto Trait Implementations§
impl Freeze for LoadTest
impl RefUnwindSafe for LoadTest
impl Send for LoadTest
impl Sync for LoadTest
impl Unpin for LoadTest
impl UnwindSafe for LoadTest
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).