ParallelizeExt

Trait ParallelizeExt 

Source
pub trait ParallelizeExt<Args, Ctx, Source, Middleware, Executor>: Sized {
    // Required method
    fn parallelize(
        self,
        f: Executor,
    ) -> WorkerBuilder<Args, Ctx, Source, Stack<ParallelizeLayer<Executor>, Middleware>>;
}
Expand description

Worker extension for parallel execution

Required Methods§

Source

fn parallelize( self, f: Executor, ) -> WorkerBuilder<Args, Ctx, Source, Stack<ParallelizeLayer<Executor>, Middleware>>

Register the executor for parallel task execution.

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.

Implementors§

Source§

impl<Args, P, M, Ctx, Executor> ParallelizeExt<Args, Ctx, P, M, Executor> for WorkerBuilder<Args, Ctx, P, M>
where P: Backend<Args = Args, Context = Ctx>, M: Layer<ParallelizeLayer<Executor>>,