fn single_worker<T: WorkerConfig>(
        config: &T,
        storage: Storage,
        parser: Parser,
    ) -> Result<WorkersBuilder<Storage, Parser, Request, Response>, Error> {
        // initialize worker
        let worker = SingleWorkerBuilder::new(config, storage, parser).unwrap_or_else(|e| {
            error!("{}", e);
            std::process::exit(1);
        });

        Ok(WorkersBuilder::Single { worker })
    }
// Creates a single-worker builder
Creates a single-worker builder
Creates a single - worker builder
fn single_worker<T: WorkerConfig>(
        config: &T,
        storage: Storage,
        parser: Parser,
    ) -> Result<WorkersBuilder<Storage, Parser, Request, Response>, Error> {
        // initialize worker
        let worker = SingleWorkerBuilder::new(config, storage, parser).unwrap_or_else(|e| {
            error!("{}", e);
            std::process::exit(1);
        });
        Ok(WorkersBuilder::Single { worker })
    }
fn single_worker < T : WorkerConfig > ( config : & T , storage : Storage , parser : Parser , ) -> Result < WorkersBuilder < Storage , Parser , Request , Response > , Error > { // initialize worker let worker = SingleWorkerBuilder :: new ( config , storage , parser ) . unwrap_or_else ( | e | { error ! ( " " e ) ; std :: process :: exit ( 1 ) ; } ) ; Ok ( WorkersBuilder :: Single { worker } ) }
Creates a single-worker builder
Creates a single - worker builder
config
&T
storage
Storage
parser
Parser
config
&T
storage
Storage
parser
Parser