pub fn listen_uds<F, N: AsRef<str>>(
        mut self,
        name: N,
        lst: std::os::unix::net::UnixListener,
        factory: F,
    ) -> io::Result<Self>
    where
        F: ServiceFactory<actix_rt::net::UnixStream>,
    {
        use std::net::{IpAddr, Ipv4Addr, SocketAddr};
        let token = self.token.next();
        let addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), 8080);
        self.services.push(StreamNewService::create(
            name.as_ref().to_string(),
            token,
            factory,
            addr,
        ));
        self.sockets
            .push((token, name.as_ref().to_string(), StdListener::Uds(lst)));
        Ok(self)
    }
/// Add new unix domain service to the server.
/// Useful when running as a systemd service and
/// a socket FD can be acquired using the systemd crate.
Add new unix domain service to the server.
Useful when running as a systemd service and
a socket FD can be acquired using the systemd crate.
Add new unix domain service to the server . Useful when running as a systemd service and a socket FD can be acquired using the systemd crate .
pub fn listen_uds<F, N: AsRef<str>>(
        mut self,
        name: N,
        lst: std::os::unix::net::UnixListener,
        factory: F,
    ) -> io::Result<Self>
    where
        F: ServiceFactory<actix_rt::net::UnixStream>,
    {
        use std::net::{IpAddr, Ipv4Addr, SocketAddr};
        let token = self.token.next();
        let addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), 8080);
        self.services.push(StreamNewService::create(
            name.as_ref().to_string(),
            token,
            factory,
            addr,
        ));
        self.sockets
            .push((token, name.as_ref().to_string(), StdListener::Uds(lst)));
        Ok(self)
    }
pub fn listen_uds < F , N : AsRef < str > > ( mut self , name : N , lst : std :: os :: unix :: net :: UnixListener , factory : F , ) -> io :: Result < Self > where F : ServiceFactory < actix_rt :: net :: UnixStream > , { use std :: net :: { IpAddr , Ipv4Addr , SocketAddr } ; let token = self . token . next ( ) ; let addr = SocketAddr :: new ( IpAddr :: V4 ( Ipv4Addr :: new ( 127 , 0 , 0 , 1 ) ) , 8080 ) ; self . services . push ( StreamNewService :: create ( name . as_ref ( ) . to_string ( ) , token , factory , addr , ) ) ; self . sockets . push ( ( token , name . as_ref ( ) . to_string ( ) , StdListener :: Uds ( lst ) ) ) ; Ok ( self ) }
Add new unix domain service to the server.
Add new unix domain service to the server .
mut self
name
N
lst
std::os::unix::net::UnixListener
factory
F
mut self
name
N
lst
std::os::unix::net::UnixListener
factory
F