pub trait AsyncBencherExtension<A: AsyncExecutor> {
// Required methods
fn try_iter_custom<R, F>(&mut self, routine: R)
where R: Fn(u64, WallTime) -> F,
F: Future<Output = Result<Duration>>;
fn try_iter_async<I, S, SF, R, F, T, TF>(
&mut self,
runner: A,
setup: S,
routine: R,
teardown: T,
)
where S: Fn() -> SF,
SF: Future<Output = Result<I>>,
R: Fn(I, u64, WallTime, bool) -> F,
F: Future<Output = Result<(I, Duration)>>,
T: Fn(I) -> TF,
TF: Future<Output = ()>;
}
Required Methods§
fn try_iter_custom<R, F>(&mut self, routine: R)
fn try_iter_async<I, S, SF, R, F, T, TF>( &mut self, runner: A, setup: S, routine: R, teardown: T, )
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.