pub trait MultithreadedTestResult: Sized {
    // Required method
    fn run<F: 'static + Send + Fn(usize) -> Fut, Fut: 'static + Send + Future<Output = Self>>(
        test: F,
        threads: usize,
        cfg: Config
    ) -> Self;
}
Expand description

Defines how to compose multiple test runs for a kind of test result in a multithreaded executor.

Required Methods§

source

fn run<F: 'static + Send + Fn(usize) -> Fut, Fut: 'static + Send + Future<Output = Self>>( test: F, threads: usize, cfg: Config ) -> Self

How to repeatedly run a test with this result in a multi threaded executor.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl MultithreadedTestResult for ()

source§

fn run<F: 'static + Send + Fn(usize) -> Fut, Fut: 'static + Send + Future<Output = Self>>( test: F, threads: usize, cfg: Config ) -> Self

source§

impl<E: 'static + Send> MultithreadedTestResult for Result<(), E>

source§

fn run<F: 'static + Send + Fn(usize) -> Fut, Fut: 'static + Send + Future<Output = Self>>( test: F, threads: usize, cfg: Config ) -> Self

Implementors§