pub trait WorkerFactory<S> {
    type Worker: Worker;

    fn build(self, service: S) -> Self::Worker;
}
Expand description

Helper trait for building new Workers from WorkerBuilder

Required Associated Types§

The worker to build

Required Methods§

Builds a WorkerFactory using a tower service that can be used to generate new Worker actors using the build method

Arguments
  • service - A tower service
Examples

Implementors§