1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-26 19:47:43 +02:00

attribute nits

This commit is contained in:
Rob Ede
2021-01-26 09:45:43 +00:00
parent eaefe21b98
commit cff9deb729
4 changed files with 15 additions and 15 deletions

View File

@ -177,8 +177,8 @@ impl ServerBuilder {
Ok(self)
}
#[cfg(unix)]
/// Add new unix domain service to the server.
#[cfg(unix)]
pub fn bind_uds<F, U, N>(self, name: N, addr: U, factory: F) -> io::Result<Self>
where
F: ServiceFactory<actix_rt::net::UnixStream>,
@ -198,10 +198,10 @@ impl ServerBuilder {
self.listen_uds(name, lst, factory)
}
#[cfg(unix)]
/// 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.
#[cfg(unix)]
pub fn listen_uds<F, N: AsRef<str>>(
mut self,
name: N,