pub struct CurveExecutor { /* private fields */ }Expand description
Executes a load test driven by a LoadCurve, dynamically scaling VUs.
Implementations§
Source§impl CurveExecutor
impl CurveExecutor
pub fn new(params: CurveExecutorParams) -> Self
Sourcepub async fn execute(self) -> Result<CurveExecutionResult, RunError>
pub async fn execute(self) -> Result<CurveExecutionResult, RunError>
Runs the load curve, spawning and cancelling VU tasks as the curve
dictates. Returns a CurveExecutionResult when the curve completes or a
cancellation signal is received.
Auto Trait Implementations§
impl Freeze for CurveExecutor
impl !RefUnwindSafe for CurveExecutor
impl Send for CurveExecutor
impl Sync for CurveExecutor
impl Unpin for CurveExecutor
impl UnsafeUnpin for CurveExecutor
impl !UnwindSafe for CurveExecutor
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