pub struct LoadTester { /* private fields */ }Expand description
Main load test coordinator
Implementations§
Source§impl LoadTester
impl LoadTester
Sourcepub fn new(config: LoadTestConfig) -> Self
pub fn new(config: LoadTestConfig) -> Self
Create a new load tester with the given configuration
Sourcepub async fn run(&self) -> Result<LoadTestMetrics>
pub async fn run(&self) -> Result<LoadTestMetrics>
Run the load test
Sourcepub async fn get_metrics(&self) -> LoadTestMetrics
pub async fn get_metrics(&self) -> LoadTestMetrics
Get current metrics
Auto Trait Implementations§
impl Freeze for LoadTester
impl !RefUnwindSafe for LoadTester
impl Send for LoadTester
impl Sync for LoadTester
impl Unpin for LoadTester
impl UnsafeUnpin for LoadTester
impl !UnwindSafe for LoadTester
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