pub trait WorkerBuilder<TWorker>: Send + Syncwhere
    TWorker: Actor,{
    // Required method
    fn build(&self, wid: WorkerId) -> TWorker;
}
Expand description

Trait defining a builder of workers for a factory

Required Methods§

source

fn build(&self, wid: WorkerId) -> TWorker

Build a new worker

  • wid: The worker’s “id” or index in the worker pool

Implementors§