Bind the server to a TCP address.
(mut self, addr: SocketAddr)
| 227 | |
| 228 | /// Bind the server to a TCP address. |
| 229 | pub fn tcp(mut self, addr: SocketAddr) -> Self { |
| 230 | self.endpoint = ServerEndpointConfig::Tcp(addr); |
| 231 | self |
| 232 | } |
| 233 | |
| 234 | /// Bind the server to a Unix-domain socket path. |
| 235 | #[cfg(unix)] |