pub trait HandlerFactory:
Send
+ Sync
+ 'static {
// Required methods
fn mode(&self) -> Mode;
fn build(&self, ctx: &WorkerCtx) -> Box<dyn Handler>;
}Expand description
Builds a Handler for each worker.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".