pub trait WorkerFactoryFn<F> {
    type Worker: Worker;

    fn build_fn(self, f: F) -> Self::Worker;
}
Expand description

Helper trait for building new Workers from WorkerBuilder

Required Associated Types§

The worker build

Required Methods§

Builds a WorkerFactoryFn using a crate::job_fn::JobFn service that can be used to generate new Worker actors using the build method

Arguments
  • f - A tower functional service
Examples

Implementors§