Skip to main content

ParallelizeExt

Trait ParallelizeExt 

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

Worker extension for parallel execution

Required Methods§

Source

fn parallelize( self, f: Executor, ) -> WorkerBuilder<Args, 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".

Implementors§

Source§

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