pub trait NewWorker<C> {
// Required method
fn factory(context: C) -> impl WorkerFactory + 'static;
}Expand description
A worker that can be built on contexts of type C.
Required Methods§
Sourcefn factory(context: C) -> impl WorkerFactory + 'static
fn factory(context: C) -> impl WorkerFactory + 'static
The factory the runner rebuilds this worker with after a restart.
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.