You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: server.rs
    path of file: ./repos/ntex/ntex/src/web
    
    the code of the file until where you have to start completion: use std::{fmt, io, marker::PhantomData, net, sync::Arc, sync::Mutex};

#[cfg(feature = "openssl")]
use tls_openssl::ssl::{AlpnError, SslAcceptor, SslAcceptorBuilder};
#[cfg(feature = "rustls")]
use tls_rustls::ServerConfig as RustlsServerConfig;

use crate::http::{
    self, body::MessageBody, HttpService, KeepAlive, Request, Response, ResponseError,
};
use crate::server::{Server, ServerBuilder};
use crate::service::{map_config, IntoServiceFactory, ServiceFactory};
use crate::{time::Seconds, util::PoolId};

use super::config::AppConfig;

struct Config {
    host: Option<String>,
    keep_alive: KeepAlive,
    client_disconnect: Seconds,
    ssl_handshake_timeout: Seconds,
    headers_read_r
    
    pub fn listen_uds(mut self, lst: std::os::unix::net::UnixListener) -> io::Result<Self> {
        let cfg = self.config.clone();
        let factory = self.factory.clone();
        let socket_addr =
            net::SocketAddr::new(net::IpAddr::V4(net::Ipv4Addr::new(127, 0, 0, 1)), 8080);

        let addr = format!("ntex-web-service-{:?}", lst.local_addr()?);

        self.builder = self.builder.listen_uds(addr, lst, move |r| {
            let c = cfg.lock().unwrap();
            let config = AppConfig::new(
                false,
                socket_addr,
                c.host.clone().unwrap_or_else(|| format!("{}", socket_addr)),
            );
            r.memory_pool(c.pool);

            HttpService::build_with_config(c.into_cfg())
                .finish(map_config(factory(), move |_| config.clone()))
        })?;
        Ok(self)
    }