pub struct LoadTestRunner<F, Fut>where
F: Fn() -> Fut + Send + Sync + Clone + 'static,
Fut: Future<Output = Result<(), LoadTestError>> + Send + 'static,{ /* private fields */ }Expand description
Load test runner
Implementations§
Source§impl<F, Fut> LoadTestRunner<F, Fut>
impl<F, Fut> LoadTestRunner<F, Fut>
Sourcepub fn new(config: LoadTestConfig, test_fn: F) -> Self
pub fn new(config: LoadTestConfig, test_fn: F) -> Self
Sourcepub async fn run(&self) -> Result<LoadTestStats, LoadTestError>
pub async fn run(&self) -> Result<LoadTestStats, LoadTestError>
Run load test
Auto Trait Implementations§
impl<F, Fut> Freeze for LoadTestRunner<F, Fut>
impl<F, Fut> RefUnwindSafe for LoadTestRunner<F, Fut>where
Arc<F>: RefUnwindSafe,
impl<F, Fut> Send for LoadTestRunner<F, Fut>
impl<F, Fut> Sync for LoadTestRunner<F, Fut>
impl<F, Fut> Unpin for LoadTestRunner<F, Fut>
impl<F, Fut> UnsafeUnpin for LoadTestRunner<F, Fut>where
Arc<F>: UnsafeUnpin,
impl<F, Fut> UnwindSafe for LoadTestRunner<F, Fut>where
Arc<F>: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<R, D> DepsPresent<D> for R
Source§impl<T> Injectable for T
impl<T> Injectable for T
Source§fn type_id_of() -> TypeIdwhere
Self: Sized,
fn type_id_of() -> TypeIdwhere
Self: Sized,
Returns the TypeId of this type (for internal use)
Source§fn type_name_of() -> &'static strwhere
Self: Sized,
fn type_name_of() -> &'static strwhere
Self: Sized,
Returns the type name for debugging