pub fn new<T: WorkerConfig>(
        config: &T,
        storage: Storage,
        parser: Parser,
    ) -> Result<WorkersBuilder<Storage, Parser, Request, Response>, Error> {
        let worker_config = config.worker();

        if worker_config.threads() == 1 {
            Self::single_worker(config, storage, parser)
        } else {
            Self::multi_worker(config, storage, parser)
        }
    }
/// Create a new `WorkersBuilder` from the provided config, storage, and
/// parser.
Create a new `WorkersBuilder` from the provided config, storage, and
parser.
Create a new ` WorkersBuilder ` from the provided config storage and parser .
pub fn new<T: WorkerConfig>(
        config: &T,
        storage: Storage,
        parser: Parser,
    ) -> Result<WorkersBuilder<Storage, Parser, Request, Response>, Error> {
        let worker_config = config.worker();
        if worker_config.threads() == 1 {
            Self::single_worker(config, storage, parser)
        } else {
            Self::multi_worker(config, storage, parser)
        }
    }
pub fn new < T : WorkerConfig > ( config : & T , storage : Storage , parser : Parser , ) -> Result < WorkersBuilder < Storage , Parser , Request , Response > , Error > { let worker_config = config . worker ( ) ; if worker_config . threads ( ) == 1 { Self :: single_worker ( config , storage , parser ) } else { Self :: multi_worker ( config , storage , parser ) } }
Create a new `WorkersBuilder` from the provided config, storage, and
parser.
Create a new ` WorkersBuilder ` from the provided config storage and parser .
config
&T
storage
Storage
parser
Parser
config
&T
storage
Storage
parser
Parser